Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001009/0.001009, allocations: 179.3 kB / 8.478 MB, free: 1.871 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.045/1.045, allocations: 205.2 MB / 214.1 MB, free: 5.512 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008427/0.0008427, allocations: 90.2 kB / 262.1 MB, free: 5.574 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1486/0.1495, allocations: 52.97 MB / 315.1 MB, free: 41.46 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0611/0.2106, allocations: 47.57 MB / 362.6 MB, free: 9.938 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1934/0.404, allocations: 78.47 MB / 441.1 MB, free: 10.61 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001577/0.4042, allocations: 69.19 kB / 441.2 MB, free: 10.61 MB / 314.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.0142/0.4184, allocations: 5.132 MB / 446.3 MB, free: 9.773 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.4184, allocations: 7.75 kB / 446.3 MB, free: 9.773 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.16e-05/0.4185, allocations: 31.58 kB / 446.3 MB, free: 9.758 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003142/0.4188, allocations: 267.1 kB / 446.6 MB, free: 9.523 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.124e-05/0.4189, allocations: 12.27 kB / 446.6 MB, free: 9.52 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.165e-05/0.4189, allocations: 15.62 kB / 446.6 MB, free: 9.516 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003156/0.4192, allocations: 164.9 kB / 446.8 MB, free: 9.516 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000355/0.4196, allocations: 213.1 kB / 447 MB, free: 9.461 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.4196, allocations: 0 / 447 MB, free: 9.461 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.683e-05/0.4196, allocations: 0 / 447 MB, free: 9.461 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.4197, allocations: 11.59 kB / 447 MB, free: 9.457 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001674/0.4213, allocations: 0.978 MB / 448 MB, free: 8.863 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001852/0.4215, allocations: 118.2 kB / 448.1 MB, free: 8.84 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002625/0.4218, allocations: 151 kB / 448.3 MB, free: 8.82 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.4218, allocations: 3.812 kB / 448.3 MB, free: 8.82 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001946/0.422, allocations: 163.8 kB / 448.4 MB, free: 8.723 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.373e-06/0.4221, allocations: 4 kB / 448.4 MB, free: 8.719 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003556/0.4224, allocations: 201.8 kB / 448.6 MB, free: 8.652 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.662e-05/0.4225, allocations: 106.6 kB / 448.7 MB, free: 8.527 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.4226, allocations: 188.2 kB / 448.9 MB, free: 8.426 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/0.4226, allocations: 25.7 kB / 448.9 MB, free: 8.395 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.907e-05/0.4227, allocations: 146.3 kB / 449.1 MB, free: 8.266 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.144e-05/0.4227, allocations: 64.92 kB / 449.1 MB, free: 8.219 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.623e-05/0.4228, allocations: 0 / 449.1 MB, free: 8.219 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.7e-05/0.4228, allocations: 337.3 kB / 449.5 MB, free: 7.895 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.4229, allocations: 77.86 kB / 449.5 MB, free: 7.887 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.4231, allocations: 112.4 kB / 449.7 MB, free: 7.848 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000121/0.4232, allocations: 71.36 kB / 449.7 MB, free: 7.836 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.4232, allocations: 0 / 449.7 MB, free: 7.836 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003421/0.4236, allocations: 231 kB / 449.9 MB, free: 7.777 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.4236, allocations: 7.906 kB / 450 MB, free: 7.773 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.4236, allocations: 0 / 450 MB, free: 7.773 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.4236, allocations: 3.812 kB / 450 MB, free: 7.773 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002448/0.4261, allocations: 362.8 kB / 450.3 MB, free: 7.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003981/0.4301, allocations: 3.004 MB / 453.3 MB, free: 4.891 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004666/0.4305, allocations: 66.36 kB / 453.4 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.014e-05/0.4306, allocations: 18.98 kB / 453.4 MB, free: 4.855 MB / 314.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 0.0001037/0.4307, allocations: 117.2 kB / 453.5 MB, free: 4.738 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.982e-05/0.4308, allocations: 23.22 kB / 453.5 MB, free: 4.727 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.039e-05/0.4308, allocations: 24.64 kB / 453.6 MB, free: 4.719 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.4308, allocations: 3.906 kB / 453.6 MB, free: 4.719 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.4308, allocations: 0 / 453.6 MB, free: 4.719 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.4309, allocations: 0 / 453.6 MB, free: 4.719 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001031/0.4319, allocations: 0.7373 MB / 454.3 MB, free: 4.242 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.4319, allocations: 0 / 454.3 MB, free: 4.242 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002354/0.4343, allocations: 363.4 kB / 454.7 MB, free: 4.129 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.4343, allocations: 0 / 454.7 MB, free: 4.129 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.704e-05/0.4343, allocations: 7.812 kB / 454.7 MB, free: 4.125 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00421/0.4385, allocations: 2.999 MB / 457.7 MB, free: 17.36 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.4386, allocations: 3.906 kB / 457.7 MB, free: 17.36 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004911/0.4391, allocations: 437.2 kB / 458.1 MB, free: 17.14 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007205/0.4398, allocations: 0.9073 MB / 459 MB, free: 16.55 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.169e-05/0.4399, allocations: 107.1 kB / 459.1 MB, free: 16.43 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.058e-05/0.4399, allocations: 0 / 459.1 MB, free: 16.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004191/0.4403, allocations: 54.7 kB / 459.2 MB, free: 16.42 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.673e-05/0.4404, allocations: 29.39 kB / 459.2 MB, free: 16.4 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.13e-05/0.4405, allocations: 7.75 kB / 459.2 MB, free: 16.4 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001175/0.4406, allocations: 154 kB / 459.3 MB, free: 16.32 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001005/0.4416, allocations: 83.69 kB / 459.4 MB, free: 16.3 MB / 330.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.0001439/0.4418, allocations: 110.4 kB / 459.5 MB, free: 16.2 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003255/0.445, allocations: 0.5892 MB / 460.1 MB, free: 16.03 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.445, allocations: 3.844 kB / 460.1 MB, free: 16.03 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00301/0.448, allocations: 496.8 kB / 460.6 MB, free: 15.89 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002906/0.4484, allocations: 31.41 kB / 460.6 MB, free: 15.88 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001353/0.4497, allocations: 479.1 kB / 461.1 MB, free: 15.59 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003729/0.4501, allocations: 0.7854 MB / 461.9 MB, free: 14.85 MB / 330.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4501, allocations: 0 / 461.9 MB, free: 14.85 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest_fmu --startTime=0 --stopTime=0.0002 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1)