Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 182.8 kB / 8.135 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.157/1.157, allocations: 221.4 MB / 229.9 MB, free: 3.09 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008763/0.0008763, allocations: 96.64 kB / 280.8 MB, free: 1.289 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09599/0.0969, allocations: 55.82 MB / 336.6 MB, free: 9.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.19/0.2869, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07887/0.3658, allocations: 80.17 MB / 467.2 MB, free: 6.609 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001665/0.366, allocations: 65.47 kB / 467.2 MB, free: 6.547 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.0157/0.3817, allocations: 5.31 MB / 472.5 MB, free: 1.195 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.3818, allocations: 8 kB / 472.6 MB, free: 1.188 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.196e-05/0.3819, allocations: 33.97 kB / 472.6 MB, free: 1.156 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003145/0.3822, allocations: 259.6 kB / 472.8 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.362e-05/0.3822, allocations: 11.98 kB / 472.9 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.652e-05/0.3823, allocations: 12 kB / 472.9 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003374/0.3826, allocations: 164.9 kB / 473 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000372/0.383, allocations: 213 kB / 473.2 MB, free: 468 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.383, allocations: 0 / 473.2 MB, free: 468 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.728e-05/0.3831, allocations: 5.375 kB / 473.2 MB, free: 464 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.3831, allocations: 4 kB / 473.2 MB, free: 460 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001979/0.3851, allocations: 0.9838 MB / 474.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000221/0.3853, allocations: 119.7 kB / 474.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003046/0.3856, allocations: 144.8 kB / 474.5 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.123e-05/0.3857, allocations: 7.984 kB / 474.5 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002455/0.3859, allocations: 155.2 kB / 474.6 MB, free: 14.96 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.683e-06/0.3859, allocations: 0 / 474.6 MB, free: 14.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004344/0.3864, allocations: 204.5 kB / 474.8 MB, free: 14.76 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.232e-05/0.3864, allocations: 106.8 kB / 474.9 MB, free: 14.63 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001897/0.3866, allocations: 195.9 kB / 475.1 MB, free: 14.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.957e-05/0.3867, allocations: 25.7 kB / 475.2 MB, free: 14.4 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.314e-05/0.3867, allocations: 136.2 kB / 475.3 MB, free: 14.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.299e-05/0.3868, allocations: 74.94 kB / 475.4 MB, free: 14.19 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.719e-05/0.3868, allocations: 0 / 475.4 MB, free: 14.19 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.387, allocations: 330.8 kB / 475.7 MB, free: 13.86 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001414/0.3871, allocations: 72.47 kB / 475.8 MB, free: 13.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001578/0.3873, allocations: 112.1 kB / 475.9 MB, free: 13.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001415/0.3874, allocations: 81.34 kB / 476 MB, free: 13.59 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3874, allocations: 0 / 476 MB, free: 13.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004093/0.3878, allocations: 225.3 kB / 476.2 MB, free: 13.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.3879, allocations: 4 kB / 476.2 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-06/0.3879, allocations: 4 kB / 476.2 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.3879, allocations: 4.094 kB / 476.2 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002622/0.3905, allocations: 367.6 kB / 476.5 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004756/0.3953, allocations: 3.009 MB / 479.6 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004769/0.3958, allocations: 63.92 kB / 479.6 MB, free: 9.691 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.814e-05/0.3958, allocations: 8.875 kB / 479.6 MB, free: 9.684 MB / 362.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.0001401/0.396, allocations: 108.8 kB / 479.7 MB, free: 9.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.125e-05/0.3961, allocations: 27.72 kB / 479.8 MB, free: 9.543 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.571e-05/0.3961, allocations: 29.89 kB / 479.8 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.3961, allocations: 0 / 479.8 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.3961, allocations: 4 kB / 479.8 MB, free: 9.512 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.3962, allocations: 3.984 kB / 479.8 MB, free: 9.508 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001195/0.3974, allocations: 0.7388 MB / 480.5 MB, free: 8.719 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3974, allocations: 0 / 480.5 MB, free: 8.719 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002605/0.4, allocations: 355.7 kB / 480.9 MB, free: 8.371 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.4, allocations: 0 / 480.9 MB, free: 8.371 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.11e-05/0.4, allocations: 11.98 kB / 480.9 MB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004443/0.4045, allocations: 3.006 MB / 483.9 MB, free: 5.133 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.4045, allocations: 0 / 483.9 MB, free: 5.133 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00056/0.4051, allocations: 445.8 kB / 484.3 MB, free: 4.672 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007904/0.4059, allocations: 0.9133 MB / 485.2 MB, free: 3.723 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.131e-05/0.406, allocations: 100.8 kB / 485.3 MB, free: 3.605 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.321e-05/0.406, allocations: 3.984 kB / 485.3 MB, free: 3.602 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004439/0.4065, allocations: 58.27 kB / 485.4 MB, free: 3.547 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.377e-05/0.4065, allocations: 23.97 kB / 485.4 MB, free: 3.523 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.531e-05/0.4066, allocations: 11.98 kB / 485.4 MB, free: 3.512 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001195/0.4067, allocations: 152.5 kB / 485.6 MB, free: 3.363 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001022/0.4077, allocations: 87.83 kB / 485.7 MB, free: 3.277 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.0001503/0.4079, allocations: 111.1 kB / 485.8 MB, free: 3.16 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003481/0.4114, allocations: 0.5833 MB / 486.4 MB, free: 2.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4114, allocations: 0 / 486.4 MB, free: 2.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00328/0.4147, allocations: 495.8 kB / 486.9 MB, free: 2.086 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.415, allocations: 28.42 kB / 486.9 MB, free: 2.059 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001564/0.4166, allocations: 475.7 kB / 487.3 MB, free: 1.566 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003859/0.417, allocations: 0.7774 MB / 488.1 MB, free: 0.7656 MB / 362.7 MB Notification: Performance of SimCode: time 3.5e-07/0.417, allocations: 0 / 488.1 MB, free: 0.7656 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest_fmu --startTime=0 --stopTime=0.0002 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1)