Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",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.0009412/0.0009412, allocations: 179.1 kB / 8.477 MB, free: 1.883 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.054/1.054, allocations: 205.2 MB / 214.1 MB, free: 5.102 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.0008162/0.0008161, allocations: 93.92 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1624/0.1632, allocations: 52.97 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0723/0.2355, allocations: 47.57 MB / 362.6 MB, free: 9.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2158/0.4514, allocations: 76.56 MB / 439.2 MB, free: 10.69 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001879/0.4517, allocations: 72.59 kB / 439.3 MB, free: 10.69 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.01559/0.4673, allocations: 6.642 MB / 445.9 MB, free: 9.664 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.4673, allocations: 11.62 kB / 445.9 MB, free: 9.664 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.4674, allocations: 46.69 kB / 446 MB, free: 9.641 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003542/0.4678, allocations: 303.3 kB / 446.3 MB, free: 9.395 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.4678, allocations: 13.5 kB / 446.3 MB, free: 9.395 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.445e-05/0.4679, allocations: 19.38 kB / 446.3 MB, free: 9.395 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003754/0.4682, allocations: 211.9 kB / 446.5 MB, free: 9.391 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004307/0.4687, allocations: 282.8 kB / 446.8 MB, free: 9.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.4687, allocations: 3.938 kB / 446.8 MB, free: 9.316 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.275e-05/0.4687, allocations: 8.359 kB / 446.8 MB, free: 9.312 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.4688, allocations: 7.844 kB / 446.8 MB, free: 9.312 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001763/0.4705, allocations: 1.371 MB / 448.2 MB, free: 8.414 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002735/0.4708, allocations: 174.4 kB / 448.3 MB, free: 8.383 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/0.4709, allocations: 85.75 kB / 448.4 MB, free: 8.371 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.799e-05/0.471, allocations: 3.688 kB / 448.4 MB, free: 8.371 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.836e-05/0.471, allocations: 37.8 kB / 448.5 MB, free: 8.328 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 1.654e-06/0.471, allocations: 3.938 kB / 448.5 MB, free: 8.324 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004363/0.4714, allocations: 255.1 kB / 448.7 MB, free: 8.227 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.931e-05/0.4715, allocations: 55.31 kB / 448.8 MB, free: 8.164 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000191/0.4717, allocations: 239.8 kB / 449 MB, free: 8.055 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/0.4717, allocations: 25.7 kB / 449 MB, free: 8.023 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.478e-05/0.4718, allocations: 180.1 kB / 449.2 MB, free: 7.875 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.971e-05/0.4718, allocations: 77.27 kB / 449.3 MB, free: 7.82 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.133e-05/0.4718, allocations: 0 / 449.3 MB, free: 7.82 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.944e-05/0.4719, allocations: 342 kB / 449.6 MB, free: 7.496 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.472, allocations: 64.14 kB / 449.7 MB, free: 7.488 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001267/0.4722, allocations: 102.4 kB / 449.8 MB, free: 7.441 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001131/0.4723, allocations: 67.62 kB / 449.8 MB, free: 7.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.4723, allocations: 3.969 kB / 449.8 MB, free: 7.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005064/0.4728, allocations: 304.9 kB / 450.1 MB, free: 7.316 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.4728, allocations: 5.688 kB / 450.1 MB, free: 7.316 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.4728, allocations: 0 / 450.1 MB, free: 7.316 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003885/0.4732, allocations: 115.3 kB / 450.3 MB, free: 7.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.4734, allocations: 35.08 kB / 450.3 MB, free: 7.262 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002723/0.4761, allocations: 3.975 MB / 454.3 MB, free: 19.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002058/0.4764, allocations: 27.33 kB / 454.3 MB, free: 19.51 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.927e-05/0.4764, allocations: 7.594 kB / 454.3 MB, free: 19.51 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001067/0.4765, allocations: 104.8 kB / 454.4 MB, free: 19.4 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.812e-05/0.4766, allocations: 35.06 kB / 454.4 MB, free: 19.38 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.76e-05/0.4766, allocations: 33.25 kB / 454.5 MB, free: 19.37 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.4766, allocations: 3.844 kB / 454.5 MB, free: 19.37 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.4767, allocations: 0 / 454.5 MB, free: 19.37 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.4767, allocations: 7.891 kB / 454.5 MB, free: 19.36 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003316/0.477, allocations: 315.7 kB / 454.8 MB, free: 19.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.477, allocations: 0 / 454.8 MB, free: 19.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001186/0.4771, allocations: 34.97 kB / 454.8 MB, free: 19.13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003045/0.4774, allocations: 112.3 kB / 454.9 MB, free: 19.09 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.4775, allocations: 0 / 454.9 MB, free: 19.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00304/0.4805, allocations: 3.972 MB / 458.9 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.4805, allocations: 0 / 458.9 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003786/0.4809, allocations: 343.8 kB / 459.2 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004891/0.4814, allocations: 0.7237 MB / 460 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.4816, allocations: 122.3 kB / 460.1 MB, free: 14.49 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.303e-05/0.4816, allocations: 3.984 kB / 460.1 MB, free: 14.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002337/0.4819, allocations: 27.56 kB / 460.1 MB, free: 14.47 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.111e-05/0.4819, allocations: 18.95 kB / 460.1 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.832e-05/0.482, allocations: 15.64 kB / 460.2 MB, free: 14.46 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.00016/0.4821, allocations: 182.2 kB / 460.3 MB, free: 14.37 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009626/0.4831, allocations: 104.2 kB / 460.4 MB, free: 14.35 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: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001196/0.4832, allocations: 98.47 kB / 460.5 MB, free: 14.26 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005621/0.4838, allocations: 487.5 kB / 461 MB, free: 13.94 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.4838, allocations: 0 / 461 MB, free: 13.94 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003232/0.4841, allocations: 415.7 kB / 461.4 MB, free: 13.61 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002682/0.4844, allocations: 38.83 kB / 461.4 MB, free: 13.6 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008774/0.4853, allocations: 389.2 kB / 461.8 MB, free: 13.4 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004155/0.4857, allocations: 0.8256 MB / 462.7 MB, free: 12.63 MB / 330.7 MB Notification: Performance of SimCode: time 3e-07/0.4857, allocations: 0 / 462.7 MB, free: 12.63 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat