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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001478/0.001478, allocations: 205.1 kB / 8.539 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.155/1.155, allocations: 225.5 MB / 234.4 MB, free: 3.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008532/0.0008532, allocations: 90.23 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08971/0.09059, allocations: 56.9 MB / 343.2 MB, free: 8.617 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08079/0.1714, allocations: 51.48 MB / 394.7 MB, free: 5.094 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2086/0.38, allocations: 80.94 MB / 475.7 MB, free: 11.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001692/0.3802, allocations: 67.97 kB / 475.7 MB, free: 11.07 MB / 346.7 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.01436/0.3946, allocations: 5.393 MB / 481.1 MB, free: 7.152 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.3946, allocations: 8 kB / 481.1 MB, free: 7.145 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000177/0.3948, allocations: 43.62 kB / 481.2 MB, free: 7.102 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002661/0.3951, allocations: 262.3 kB / 481.4 MB, free: 6.828 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.3951, allocations: 8 kB / 481.4 MB, free: 6.82 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.118e-05/0.3952, allocations: 15.88 kB / 481.4 MB, free: 6.809 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003089/0.3955, allocations: 161 kB / 481.6 MB, free: 6.715 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003274/0.3958, allocations: 219.2 kB / 481.8 MB, free: 6.543 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.3959, allocations: 0 / 481.8 MB, free: 6.543 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.825e-05/0.3959, allocations: 4 kB / 481.8 MB, free: 6.539 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.627e-06/0.3959, allocations: 11.91 kB / 481.8 MB, free: 6.527 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00166/0.3976, allocations: 0.975 MB / 482.8 MB, free: 5.672 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002032/0.3978, allocations: 107.7 kB / 482.9 MB, free: 5.602 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002798/0.3981, allocations: 159.8 kB / 483.1 MB, free: 5.488 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.647e-05/0.3981, allocations: 7.562 kB / 483.1 MB, free: 5.484 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002017/0.3983, allocations: 168.6 kB / 483.2 MB, free: 5.34 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.302e-06/0.3983, allocations: 0 / 483.2 MB, free: 5.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003704/0.3987, allocations: 196.4 kB / 483.4 MB, free: 5.191 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.588e-05/0.3987, allocations: 106.8 kB / 483.5 MB, free: 5.062 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001399/0.3989, allocations: 190.4 kB / 483.7 MB, free: 4.902 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.3989, allocations: 33.47 kB / 483.8 MB, free: 4.871 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.483e-05/0.399, allocations: 135.6 kB / 483.9 MB, free: 4.738 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.259e-05/0.399, allocations: 78.59 kB / 484 MB, free: 4.672 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.637e-05/0.399, allocations: 0 / 484 MB, free: 4.672 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.506e-05/0.3991, allocations: 334.4 kB / 484.3 MB, free: 4.344 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000125/0.3992, allocations: 71.16 kB / 484.4 MB, free: 4.305 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.3994, allocations: 108.8 kB / 484.5 MB, free: 4.223 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001254/0.3995, allocations: 73.94 kB / 484.5 MB, free: 4.18 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3995, allocations: 0 / 484.5 MB, free: 4.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003605/0.3999, allocations: 234.8 kB / 484.8 MB, free: 4.008 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.3999, allocations: 4 kB / 484.8 MB, free: 4.004 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.84e-06/0.3999, allocations: 0 / 484.8 MB, free: 4.004 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.3999, allocations: 7.984 kB / 484.8 MB, free: 3.996 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002554/0.4025, allocations: 356.8 kB / 485.1 MB, free: 3.648 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004079/0.4066, allocations: 3.01 MB / 488.1 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004675/0.4071, allocations: 67.98 kB / 488.2 MB, free: 464 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.994e-05/0.4071, allocations: 7.906 kB / 488.2 MB, free: 456 kB / 346.7 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 ($whenCondition1,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete 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 (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 9.093e-05/0.4072, allocations: 116.2 kB / 488.3 MB, free: 340 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.122e-05/0.4072, allocations: 27.7 kB / 488.3 MB, free: 312 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.437e-05/0.4073, allocations: 19.72 kB / 488.4 MB, free: 304 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.756e-06/0.4073, allocations: 4 kB / 488.4 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.754e-06/0.4073, allocations: 0 / 488.4 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.4073, allocations: 3.984 kB / 488.4 MB, free: 296 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001088/0.4084, allocations: 0.743 MB / 489.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.4084, allocations: 0 / 489.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002595/0.411, allocations: 351.7 kB / 489.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.4111, allocations: 7.938 kB / 489.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.032e-05/0.4111, allocations: 9.219 kB / 489.5 MB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004563/0.4157, allocations: 3.008 MB / 492.5 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.4157, allocations: 7.969 kB / 492.5 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005842/0.4163, allocations: 433.4 kB / 492.9 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008183/0.4171, allocations: 0.9054 MB / 493.8 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.365e-05/0.4172, allocations: 103.1 kB / 493.9 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.434e-05/0.4173, allocations: 4 kB / 493.9 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004464/0.4177, allocations: 56.02 kB / 494 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.594e-05/0.4178, allocations: 34.95 kB / 494 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-05/0.4179, allocations: 4 kB / 494 MB, free: 10.79 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001416/0.418, allocations: 153.6 kB / 494.2 MB, free: 10.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001027/0.4191, allocations: 83 kB / 494.3 MB, free: 10.58 MB / 362.7 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) * 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 (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001608/0.4192, allocations: 114.3 kB / 494.4 MB, free: 10.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003564/0.4228, allocations: 0.5987 MB / 495 MB, free: 9.926 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4228, allocations: 0 / 495 MB, free: 9.926 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003243/0.4261, allocations: 491.5 kB / 495.4 MB, free: 9.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003446/0.4264, allocations: 23.67 kB / 495.5 MB, free: 9.465 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00156/0.428, allocations: 478 kB / 495.9 MB, free: 9.012 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004147/0.4284, allocations: 0.777 MB / 496.7 MB, free: 8.215 MB / 362.7 MB Notification: Performance of SimCode: time 6.11e-07/0.4284, allocations: 4 kB / 496.7 MB, free: 8.211 MB / 362.7 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/linux/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)