Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",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.0009546/0.0009546, allocations: 180.2 kB / 8.478 MB, free: 1.84 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.032/1.032, allocations: 205.2 MB / 214.1 MB, free: 5.176 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.0009046/0.0009045, allocations: 87.27 kB / 262.1 MB, free: 5.203 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1454/0.1463, allocations: 52.96 MB / 315.1 MB, free: 41.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0604/0.2067, allocations: 47.58 MB / 362.6 MB, free: 9.887 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.198/0.4048, allocations: 81.43 MB / 444.1 MB, free: 10.68 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001858/0.405, allocations: 75.8 kB / 444.1 MB, free: 10.68 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.02573/0.4308, allocations: 11.47 MB / 455.6 MB, free: 6.906 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.98e-05/0.4308, allocations: 7.812 kB / 455.6 MB, free: 6.906 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001523/0.431, allocations: 65.81 kB / 455.7 MB, free: 6.875 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006087/0.4316, allocations: 398.8 kB / 456.1 MB, free: 6.586 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.4316, allocations: 15.53 kB / 456.1 MB, free: 6.582 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.113e-05/0.4317, allocations: 22.75 kB / 456.1 MB, free: 6.582 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004557/0.4322, allocations: 271.3 kB / 456.4 MB, free: 6.562 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004926/0.4327, allocations: 361.7 kB / 456.7 MB, free: 6.426 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.4327, allocations: 0 / 456.7 MB, free: 6.426 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.422e-05/0.4327, allocations: 0 / 456.7 MB, free: 6.426 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.4327, allocations: 15.41 kB / 456.7 MB, free: 6.422 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00208/0.4348, allocations: 1.686 MB / 458.4 MB, free: 5.332 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000444/0.4353, allocations: 292.6 kB / 458.7 MB, free: 5.293 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002277/0.4355, allocations: 171.7 kB / 458.9 MB, free: 5.277 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.756e-05/0.4356, allocations: 3.906 kB / 458.9 MB, free: 5.277 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002762/0.4358, allocations: 224.1 kB / 459.1 MB, free: 5.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=40): time 1.714e-06/0.4358, allocations: 0 / 459.1 MB, free: 5.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=40): time 0.0007998/0.4367, allocations: 415.3 kB / 459.5 MB, free: 5.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/0.4367, allocations: 197.1 kB / 459.7 MB, free: 4.789 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004331/0.4371, allocations: 406.1 kB / 460.1 MB, free: 4.648 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.014e-05/0.4372, allocations: 27.02 kB / 460.1 MB, free: 4.617 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.284e-05/0.4373, allocations: 200.8 kB / 460.3 MB, free: 4.465 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.526e-05/0.4373, allocations: 116 kB / 460.4 MB, free: 4.383 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.661e-05/0.4374, allocations: 0 / 460.4 MB, free: 4.383 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.659e-05/0.4374, allocations: 357.6 kB / 460.8 MB, free: 4.055 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001759/0.4376, allocations: 105.7 kB / 460.9 MB, free: 4.051 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002167/0.4378, allocations: 192.6 kB / 461.1 MB, free: 3.953 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001758/0.438, allocations: 109.7 kB / 461.2 MB, free: 3.938 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.438, allocations: 4 kB / 461.2 MB, free: 3.934 MB / 314.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006073/0.4386, allocations: 419 kB / 461.6 MB, free: 3.812 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.4387, allocations: 5.25 kB / 461.6 MB, free: 3.812 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.259e-06/0.4387, allocations: 1.469 kB / 461.6 MB, free: 3.812 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004626/0.4391, allocations: 158.2 kB / 461.8 MB, free: 3.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002326/0.4394, allocations: 46.31 kB / 461.8 MB, free: 3.738 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003246/0.4426, allocations: 5.333 MB / 467.1 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004041/0.4431, allocations: 50.31 kB / 467.2 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.955e-05/0.4431, allocations: 16.84 kB / 467.2 MB, free: 14.72 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealGTOThyristor1.off,IdealGTOThyristor1.fire,booleanStep1.combiTimeTable.nextTimeEvent,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001261/0.4433, allocations: 121.8 kB / 467.3 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.967e-05/0.4433, allocations: 55.59 kB / 467.4 MB, free: 14.58 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008115/0.4442, allocations: 433.2 kB / 467.8 MB, free: 14.44 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.4442, allocations: 7.688 kB / 467.8 MB, free: 14.44 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.4442, allocations: 4 kB / 467.8 MB, free: 14.43 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.4442, allocations: 3.938 kB / 467.8 MB, free: 14.43 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004597/0.4447, allocations: 447.8 kB / 468.2 MB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.4447, allocations: 0 / 468.2 MB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001472/0.4448, allocations: 30.52 kB / 468.3 MB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003952/0.4452, allocations: 147 kB / 468.4 MB, free: 14.1 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.716e-05/0.4453, allocations: 8.906 kB / 468.4 MB, free: 14.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003684/0.449, allocations: 5.314 MB / 473.7 MB, free: 9.121 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.449, allocations: 3.906 kB / 473.7 MB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000804/0.4498, allocations: 447.6 kB / 474.2 MB, free: 8.949 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008246/0.4506, allocations: 0.8302 MB / 475 MB, free: 8.395 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002068/0.4509, allocations: 170.5 kB / 475.2 MB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.635e-05/0.4509, allocations: 2.719 kB / 475.2 MB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003236/0.4513, allocations: 38.38 kB / 475.2 MB, free: 8.238 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.492e-05/0.4514, allocations: 28.98 kB / 475.2 MB, free: 8.227 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.863e-05/0.4514, allocations: 14.23 kB / 475.3 MB, free: 8.223 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003756/0.4518, allocations: 317 kB / 475.6 MB, free: 8.113 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001156/0.4529, allocations: 159.5 kB / 475.7 MB, free: 8.094 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealGTOThyristor1.off,IdealGTOThyristor1.fire,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.000649/0.4536, allocations: 323.8 kB / 476 MB, free: 7.844 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009037/0.4545, allocations: 0.7062 MB / 476.7 MB, free: 7.402 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.4545, allocations: 1.281 kB / 476.7 MB, free: 7.402 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005391/0.4551, allocations: 0.5654 MB / 477.3 MB, free: 6.977 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004396/0.4555, allocations: 79 kB / 477.4 MB, free: 6.953 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.4569, allocations: 0.6496 MB / 478 MB, free: 6.66 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004658/0.4574, allocations: 0.892 MB / 478.9 MB, free: 5.875 MB / 330.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4574, allocations: 4 kB / 478.9 MB, free: 5.871 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1)