Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001583/0.001583, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001674/0.001674, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2786, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.003965/0.2826, allocations: 2.773 MB / 411.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001445/0.284, allocations: 0.74 MB / 412.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002355/0.2843, allocations: 4 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002075/0.2846, allocations: 47.56 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002821/0.2849, allocations: 83.2 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004418/0.2853, allocations: 119.8 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004872/0.2858, allocations: 390.4 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002007/0.286, allocations: 72.7 kB / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003446/0.2864, allocations: 167.5 kB / 413.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003184/0.2867, allocations: 167.3 kB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.176e-05/0.2868, allocations: 32 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.978e-05/0.2869, allocations: 39.98 kB / 413.4 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.909e-05/0.2869, allocations: 75.69 kB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001581/0.2871, allocations: 155.2 kB / 413.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003941/0.2875, allocations: 372.4 kB / 414 MB, free: 12.31 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2875, allocations: 4 kB / 414 MB, free: 12.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2875, allocations: 0 / 414 MB, free: 12.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.2876, allocations: 0 / 414 MB, free: 12.3 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001488/0.289, allocations: 0.6842 MB / 414.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.2891, allocations: 8.031 kB / 414.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.509e-05/0.2892, allocations: 58.67 kB / 414.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000176/0.2893, allocations: 40.55 kB / 414.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003771/0.2897, allocations: 274.7 kB / 415 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.2898, allocations: 12.81 kB / 415 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.004e-05/0.2898, allocations: 20.38 kB / 415.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007457/0.2906, allocations: 317.8 kB / 415.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.2906, allocations: 0 / 415.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.266e-05/0.2906, allocations: 12 kB / 415.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.2907, allocations: 8 kB / 415.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008781/0.2915, allocations: 297.5 kB / 415.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001669/0.2932, allocations: 0.9646 MB / 416.6 MB, free: 9.449 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002958/0.2962, allocations: 0.4943 MB / 417.1 MB, free: 8.945 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006513/0.2969, allocations: 212.7 kB / 417.3 MB, free: 8.734 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.183e-05/0.2969, allocations: 7.938 kB / 417.4 MB, free: 8.727 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006591/0.2976, allocations: 253.1 kB / 417.6 MB, free: 8.461 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 2.164e-06/0.2976, allocations: 0 / 417.6 MB, free: 8.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001569/0.2992, allocations: 467.9 kB / 418.1 MB, free: 8 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.826e-05/0.2993, allocations: 110.8 kB / 418.2 MB, free: 7.867 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003287/0.2996, allocations: 237 kB / 418.4 MB, free: 7.629 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.139e-05/0.2997, allocations: 29.7 kB / 418.4 MB, free: 7.594 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/0.2998, allocations: 160.2 kB / 418.6 MB, free: 7.434 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.727e-05/0.2999, allocations: 67.02 kB / 418.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001428/0.3001, allocations: 49.92 kB / 418.7 MB, free: 7.312 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.3002, allocations: 338.8 kB / 419 MB, free: 6.973 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004609/0.3007, allocations: 136.4 kB / 419.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004611/0.3012, allocations: 180.2 kB / 419.3 MB, free: 6.652 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008566/0.302, allocations: 324 kB / 419.7 MB, free: 6.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.302, allocations: 0 / 419.7 MB, free: 6.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001111/0.3032, allocations: 418.6 kB / 420.1 MB, free: 5.898 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.072e-05/0.3032, allocations: 41.69 kB / 420.1 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.3032, allocations: 64 / 420.1 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.3033, allocations: 8 kB / 420.1 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001831/0.3051, allocations: 267.6 kB / 420.4 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004779/0.3099, allocations: 3.439 MB / 423.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004316/0.3104, allocations: 51.73 kB / 423.9 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.826e-05/0.3104, allocations: 15.98 kB / 423.9 MB, free: 1.801 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002043/0.3106, allocations: 149.7 kB / 424 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.623e-05/0.3107, allocations: 27.66 kB / 424 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.018e-05/0.3108, allocations: 30.17 kB / 424.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.3108, allocations: 4 kB / 424.1 MB, free: 1.582 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.3108, allocations: 3.938 kB / 424.1 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.728e-06/0.3108, allocations: 0 / 424.1 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001818/0.3126, allocations: 0.911 MB / 425 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.3126, allocations: 0 / 425 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001797/0.3144, allocations: 259.7 kB / 425.2 MB, free: 360 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-06/0.3145, allocations: 7.984 kB / 425.3 MB, free: 352 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.935e-05/0.3145, allocations: 7.984 kB / 425.3 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004753/0.3193, allocations: 3.436 MB / 428.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.3193, allocations: 7.969 kB / 428.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001444/0.3207, allocations: 0.5984 MB / 429.3 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.855e-05/0.3209, allocations: 108.8 kB / 429.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.992e-05/0.3209, allocations: 8 kB / 429.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003527/0.3213, allocations: 36.02 kB / 429.5 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.054e-05/0.3214, allocations: 27.97 kB / 429.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.468e-05/0.3214, allocations: 11.98 kB / 429.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001605/0.3216, allocations: 176.4 kB / 429.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3216, allocations: 0 / 429.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005079/0.3221, allocations: 83.84 kB / 429.7 MB, free: 11.54 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (thyristor_v4_1.vControl,inductor.i) * Number of discrete variables: 3 ($whenCondition1,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001808/0.3239, allocations: 1.161 MB / 430.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002576/0.3265, allocations: 0.5693 MB / 431.5 MB, free: 9.762 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.3265, allocations: 4.125 kB / 431.5 MB, free: 9.758 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002009/0.3285, allocations: 387.6 kB / 431.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004584/0.329, allocations: 43.78 kB / 431.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005639/0.3347, allocations: 3.157 MB / 435.1 MB, free: 6.074 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004307/0.3351, allocations: 0.7558 MB / 435.8 MB, free: 5.293 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001444/0.3353, allocations: 29.92 kB / 435.8 MB, free: 5.262 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001446/0.3354, allocations: 83.41 kB / 435.9 MB, free: 5.18 MB / 350.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3354, allocations: 3.938 kB / 435.9 MB, free: 5.176 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02786/0.3633, allocations: 6.597 MB / 442.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.65, allocations: 11.5 kB / 442.5 MB, free: 14.74 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest_fmu --startTime=0 --stopTime=0.0002 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1)