Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",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.0009654/0.0009654, allocations: 174.8 kB / 8.518 MB, free: 1.832 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.113/1.113, allocations: 221.4 MB / 230.3 MB, free: 7.773 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.0009021/0.0009022, allocations: 87.86 kB / 281.2 MB, free: 5.527 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.155/0.155, allocations: 44.14 MB / 376.1 MB, free: 3.258 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1646/0.3196, allocations: 68.04 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08616/0.4058, allocations: 61.91 MB / 0.4942 GB, free: 1.547 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2242/0.63, allocations: 87.94 MB / 0.5801 GB, free: 8.922 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001823/0.6303, allocations: 83.11 kB / 0.5801 GB, free: 8.848 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.01224/0.6425, allocations: 5.078 MB / 0.5851 GB, free: 3.719 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.127e-05/0.6426, allocations: 15.94 kB / 0.5851 GB, free: 3.703 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.799e-05/0.6426, allocations: 31.62 kB / 0.5851 GB, free: 3.672 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003033/0.6429, allocations: 262.5 kB / 0.5854 GB, free: 3.375 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.643, allocations: 12 kB / 0.5854 GB, free: 3.363 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.099e-05/0.643, allocations: 12 kB / 0.5854 GB, free: 3.352 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003412/0.6434, allocations: 189.3 kB / 0.5856 GB, free: 3.164 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003872/0.6438, allocations: 263.5 kB / 0.5859 GB, free: 2.891 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-06/0.6438, allocations: 0 / 0.5859 GB, free: 2.891 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.627e-05/0.6438, allocations: 0 / 0.5859 GB, free: 2.891 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.6438, allocations: 11.94 kB / 0.5859 GB, free: 2.879 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001881/0.6457, allocations: 1.238 MB / 0.5871 GB, free: 1.574 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000263/0.646, allocations: 207 kB / 0.5873 GB, free: 1.363 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002817/0.6463, allocations: 180.2 kB / 0.5874 GB, free: 1.188 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.825e-05/0.6463, allocations: 4.234 kB / 0.5874 GB, free: 1.184 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.126e-05/0.6463, allocations: 34.8 kB / 0.5875 GB, free: 1.141 MB / 394.7 MB Notification: Performance of pre-optimization done (n=27): time 1.373e-06/0.6463, allocations: 0 / 0.5875 GB, free: 1.141 MB / 394.7 MB Notification: Performance of matching and sorting (n=27): time 0.0008681/0.6472, allocations: 390.7 kB / 0.5879 GB, free: 0.75 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.623e-05/0.6472, allocations: 55.41 kB / 0.5879 GB, free: 0.6836 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001539/0.6474, allocations: 178 kB / 0.5881 GB, free: 0.5 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.6474, allocations: 25.7 kB / 0.5881 GB, free: 480 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.464e-05/0.6475, allocations: 156.2 kB / 0.5882 GB, free: 316 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.539e-05/0.6476, allocations: 86.66 kB / 0.5883 GB, free: 228 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.171e-05/0.6476, allocations: 0 / 0.5883 GB, free: 228 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.6477, allocations: 342.6 kB / 0.5887 GB, free: 15.88 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.6478, allocations: 72.5 kB / 0.5887 GB, free: 15.81 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/0.648, allocations: 99.42 kB / 0.5888 GB, free: 15.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000129/0.6481, allocations: 79.95 kB / 0.5889 GB, free: 15.62 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.6481, allocations: 0 / 0.5889 GB, free: 15.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008222/0.6489, allocations: 426.8 kB / 0.5893 GB, free: 15.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.718e-06/0.6489, allocations: 4.75 kB / 0.5893 GB, free: 15.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.649, allocations: 0 / 0.5893 GB, free: 15.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008078/0.6498, allocations: 237.5 kB / 0.5895 GB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.6499, allocations: 27.98 kB / 0.5896 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00287/0.6528, allocations: 3.131 MB / 0.5926 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001781/0.653, allocations: 31.77 kB / 0.5926 GB, free: 11.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.934e-05/0.653, allocations: 8 kB / 0.5927 GB, free: 11.53 MB / 410.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: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.683e-05/0.6531, allocations: 105 kB / 0.5928 GB, free: 11.42 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.135e-05/0.6532, allocations: 23.72 kB / 0.5928 GB, free: 11.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.041e-05/0.6532, allocations: 34.55 kB / 0.5928 GB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.6532, allocations: 4 kB / 0.5928 GB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.6532, allocations: 4 kB / 0.5928 GB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.6533, allocations: 3.984 kB / 0.5928 GB, free: 11.35 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001247/0.6545, allocations: 0.7973 MB / 0.5936 GB, free: 10.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.6545, allocations: 4 kB / 0.5936 GB, free: 10.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.279e-05/0.6546, allocations: 16 kB / 0.5936 GB, free: 10.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007759/0.6554, allocations: 237.6 kB / 0.5938 GB, free: 10.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.54e-05/0.6554, allocations: 0 / 0.5938 GB, free: 10.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002754/0.6582, allocations: 3.129 MB / 0.5969 GB, free: 6.883 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.6582, allocations: 3.906 kB / 0.5969 GB, free: 6.879 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008068/0.659, allocations: 484.9 kB / 0.5974 GB, free: 6.383 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008639/0.6599, allocations: 0.853 MB / 0.5982 GB, free: 5.504 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/0.66, allocations: 120.8 kB / 0.5983 GB, free: 5.367 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.242e-05/0.66, allocations: 4 kB / 0.5983 GB, free: 5.363 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002316/0.6603, allocations: 27.97 kB / 0.5983 GB, free: 5.336 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.802e-05/0.6603, allocations: 23.91 kB / 0.5984 GB, free: 5.312 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.6604, allocations: 8 kB / 0.5984 GB, free: 5.305 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.968e-05/0.6605, allocations: 140.6 kB / 0.5985 GB, free: 5.168 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009191/0.6614, allocations: 95.69 kB / 0.5986 GB, free: 5.074 MB / 410.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: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001008/0.6615, allocations: 95.25 kB / 0.5987 GB, free: 4.973 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006779/0.6622, allocations: 463.3 kB / 0.5991 GB, free: 4.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.6622, allocations: 0 / 0.5991 GB, free: 4.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004569/0.6627, allocations: 371.3 kB / 0.5995 GB, free: 4.117 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.6629, allocations: 38.56 kB / 0.5995 GB, free: 4.082 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006095/0.6636, allocations: 329.2 kB / 0.5998 GB, free: 3.738 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003096/0.6639, allocations: 0.783 MB / 0.6006 GB, free: 2.926 MB / 410.7 MB Notification: Performance of SimCode: time 2.61e-07/0.6639, allocations: 0 / 0.6006 GB, free: 2.926 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat does not exist to compare? outputFormat=mat