Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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.CharacteristicThyristors,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001043/0.001043, allocations: 194.9 kB / 8.538 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.163/1.163, allocations: 225.5 MB / 234.4 MB, free: 3.43 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008533/0.0008534, allocations: 92.56 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09819/0.09907, allocations: 56.9 MB / 343.2 MB, free: 8.602 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08411/0.1832, allocations: 51.47 MB / 394.7 MB, free: 5.078 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2201/0.4033, allocations: 84.52 MB / 479.2 MB, free: 8.664 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001719/0.4035, allocations: 74.92 kB / 479.3 MB, free: 8.629 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.02967/0.4332, allocations: 12.61 MB / 491.9 MB, free: 14.11 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.4332, allocations: 8 kB / 491.9 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002553/0.4335, allocations: 75.23 kB / 492 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006575/0.4342, allocations: 419.2 kB / 492.4 MB, free: 13.63 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.4342, allocations: 16 kB / 492.4 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.148e-05/0.4343, allocations: 27.98 kB / 492.4 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005014/0.4348, allocations: 267.3 kB / 492.7 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005826/0.4354, allocations: 363.9 kB / 493.1 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.4354, allocations: 0 / 493.1 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.408e-05/0.4354, allocations: 0 / 493.1 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.4354, allocations: 16 kB / 493.1 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002332/0.4378, allocations: 1.671 MB / 494.7 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004078/0.4382, allocations: 297.1 kB / 495 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002543/0.4385, allocations: 169 kB / 495.2 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.723e-05/0.4385, allocations: 4 kB / 495.2 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003352/0.4389, allocations: 234.5 kB / 495.4 MB, free: 11.13 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.984e-06/0.4389, allocations: 0 / 495.4 MB, free: 11.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.00102/0.4399, allocations: 406.7 kB / 495.8 MB, free: 10.81 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.127e-05/0.44, allocations: 199.8 kB / 496 MB, free: 10.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000482/0.4405, allocations: 409.3 kB / 496.4 MB, free: 10.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.461e-05/0.4405, allocations: 33.27 kB / 496.5 MB, free: 10.21 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.4407, allocations: 195.7 kB / 496.6 MB, free: 10.04 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.746e-05/0.4408, allocations: 115.4 kB / 496.8 MB, free: 9.941 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.741e-05/0.4408, allocations: 0 / 496.8 MB, free: 9.941 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.4409, allocations: 359.8 kB / 497.1 MB, free: 9.602 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001778/0.4411, allocations: 102.1 kB / 497.2 MB, free: 9.547 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002422/0.4413, allocations: 198.7 kB / 497.4 MB, free: 9.367 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001926/0.4415, allocations: 109.6 kB / 497.5 MB, free: 9.301 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4415, allocations: 0 / 497.5 MB, free: 9.301 MB / 362.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006588/0.4422, allocations: 424.4 kB / 497.9 MB, free: 8.969 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.4422, allocations: 4 kB / 497.9 MB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.4422, allocations: 64 / 497.9 MB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004896/0.4427, allocations: 151.5 kB / 498.1 MB, free: 8.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002507/0.443, allocations: 54.53 kB / 498.1 MB, free: 8.789 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00392/0.4469, allocations: 5.328 MB / 0.4917 GB, free: 3.309 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00037/0.4473, allocations: 47.86 kB / 0.4917 GB, free: 3.262 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.365e-05/0.4474, allocations: 11.88 kB / 0.4917 GB, free: 3.254 MB / 362.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.0001267/0.4475, allocations: 126.8 kB / 0.4918 GB, free: 3.125 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.77e-05/0.4476, allocations: 51.34 kB / 0.4919 GB, free: 3.074 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008685/0.4485, allocations: 438.5 kB / 0.4923 GB, free: 2.746 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.4485, allocations: 7.938 kB / 0.4923 GB, free: 2.738 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.4485, allocations: 8 kB / 0.4923 GB, free: 2.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.4485, allocations: 3.984 kB / 0.4923 GB, free: 2.727 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004765/0.449, allocations: 439.4 kB / 0.4927 GB, free: 2.359 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.449, allocations: 0 / 0.4927 GB, free: 2.359 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000149/0.4491, allocations: 31.97 kB / 0.4928 GB, free: 2.328 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004233/0.4496, allocations: 145 kB / 0.4929 GB, free: 2.211 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.03e-05/0.4496, allocations: 12.55 kB / 0.4929 GB, free: 2.199 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003878/0.4535, allocations: 5.313 MB / 0.4981 GB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.4535, allocations: 0 / 0.4981 GB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007762/0.4543, allocations: 462.7 kB / 0.4986 GB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008816/0.4552, allocations: 0.8255 MB / 0.4994 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002317/0.4554, allocations: 168.8 kB / 0.4995 GB, free: 11.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.42e-05/0.4555, allocations: 8 kB / 0.4995 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002901/0.4558, allocations: 31.97 kB / 0.4996 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.951e-05/0.4559, allocations: 35.38 kB / 0.4996 GB, free: 11.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.757e-05/0.456, allocations: 11.44 kB / 0.4996 GB, free: 11.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003246/0.4563, allocations: 321.2 kB / 0.4999 GB, free: 11.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00111/0.4574, allocations: 166.5 kB / 0.5001 GB, free: 10.95 MB / 378.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.0006628/0.4581, allocations: 317.9 kB / 0.5004 GB, free: 10.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000862/0.459, allocations: 0.7136 MB / 0.5011 GB, free: 10.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.459, allocations: 0 / 0.5011 GB, free: 10.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005375/0.4595, allocations: 0.565 MB / 0.5016 GB, free: 9.559 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000437/0.46, allocations: 88.55 kB / 0.5017 GB, free: 9.492 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001405/0.4614, allocations: 0.6445 MB / 0.5023 GB, free: 8.895 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004849/0.4619, allocations: 0.893 MB / 0.5032 GB, free: 7.984 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4619, allocations: 4 kB / 0.5032 GB, free: 7.98 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat