Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.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.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor",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.001185/0.001185, allocations: 178.6 kB / 8.519 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.18/1.18, allocations: 221.4 MB / 230.3 MB, free: 7.699 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.000896/0.0008959, allocations: 87.73 kB / 281.2 MB, free: 5.453 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.1552/0.1552, allocations: 44.15 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1814/0.3367, allocations: 68.03 MB / 444.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09889/0.4356, allocations: 61.91 MB / 0.4942 GB, free: 1.527 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2497/0.6853, allocations: 87.41 MB / 0.5795 GB, free: 9.289 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002071/0.6856, allocations: 67.95 kB / 0.5796 GB, free: 9.223 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.009048/0.6947, allocations: 3.02 MB / 0.5826 GB, free: 6.168 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.6947, allocations: 15.92 kB / 0.5826 GB, free: 6.152 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.825e-05/0.6948, allocations: 11.91 kB / 0.5826 GB, free: 6.141 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002032/0.695, allocations: 191.7 kB / 0.5828 GB, free: 5.914 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.695, allocations: 0 / 0.5828 GB, free: 5.914 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.605e-05/0.695, allocations: 4 kB / 0.5828 GB, free: 5.91 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001754/0.6952, allocations: 55.98 kB / 0.5828 GB, free: 5.855 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002005/0.6954, allocations: 110.5 kB / 0.5829 GB, free: 5.734 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.6955, allocations: 2.844 kB / 0.5829 GB, free: 5.734 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.777e-05/0.6955, allocations: 0 / 0.5829 GB, free: 5.734 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.6955, allocations: 3.906 kB / 0.5829 GB, free: 5.73 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007309/0.6962, allocations: 424.1 kB / 0.5833 GB, free: 5.273 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001045/0.6963, allocations: 45.69 kB / 0.5834 GB, free: 5.223 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.679e-05/0.6964, allocations: 24.86 kB / 0.5834 GB, free: 5.195 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.6964, allocations: 4 kB / 0.5834 GB, free: 5.191 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/0.6965, allocations: 30.56 kB / 0.5834 GB, free: 5.152 MB / 394.7 MB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.6965, allocations: 0 / 0.5834 GB, free: 5.152 MB / 394.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007667/0.6972, allocations: 185.2 kB / 0.5836 GB, free: 4.965 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.497e-05/0.6973, allocations: 110.8 kB / 0.5837 GB, free: 4.832 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.6974, allocations: 131.3 kB / 0.5839 GB, free: 4.699 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.6974, allocations: 25.7 kB / 0.5839 GB, free: 4.668 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.253e-05/0.6975, allocations: 108.1 kB / 0.584 GB, free: 4.555 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.204e-05/0.6975, allocations: 23.66 kB / 0.584 GB, free: 4.531 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.674e-06/0.6976, allocations: 0 / 0.584 GB, free: 4.531 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.6977, allocations: 318.8 kB / 0.5843 GB, free: 4.211 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.662e-05/0.6977, allocations: 28 kB / 0.5843 GB, free: 4.184 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.837e-05/0.6978, allocations: 61.03 kB / 0.5844 GB, free: 4.109 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.415e-05/0.6979, allocations: 33.11 kB / 0.5844 GB, free: 4.078 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.51e-07/0.6979, allocations: 0 / 0.5844 GB, free: 4.078 MB / 394.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001863/0.6981, allocations: 97.58 kB / 0.5845 GB, free: 3.977 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.6981, allocations: 7.906 kB / 0.5845 GB, free: 3.969 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.6981, allocations: 96 / 0.5845 GB, free: 3.969 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.6982, allocations: 8 kB / 0.5845 GB, free: 3.961 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006723/0.6988, allocations: 100 kB / 0.5846 GB, free: 3.863 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001272/0.7001, allocations: 1.339 MB / 0.5859 GB, free: 2.406 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002447/0.7004, allocations: 40.06 kB / 0.586 GB, free: 2.367 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.7004, allocations: 3.938 kB / 0.586 GB, free: 2.363 MB / 394.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 8.39e-05/0.7005, allocations: 112.9 kB / 0.5861 GB, free: 2.246 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.726e-05/0.7005, allocations: 7.906 kB / 0.5861 GB, free: 2.238 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001632/0.7007, allocations: 98.23 kB / 0.5862 GB, free: 2.133 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.7007, allocations: 0 / 0.5862 GB, free: 2.133 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.7007, allocations: 7.984 kB / 0.5862 GB, free: 2.125 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.7007, allocations: 0 / 0.5862 GB, free: 2.125 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004439/0.7012, allocations: 366.9 kB / 0.5865 GB, free: 1.723 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.7012, allocations: 0 / 0.5865 GB, free: 1.723 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000189/0.7014, allocations: 35.97 kB / 0.5866 GB, free: 1.688 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.7014, allocations: 0 / 0.5866 GB, free: 1.688 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.7014, allocations: 0 / 0.5866 GB, free: 1.688 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.7014, allocations: 4 kB / 0.5866 GB, free: 1.684 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.7014, allocations: 0 / 0.5866 GB, free: 1.684 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001738/0.7016, allocations: 183.3 kB / 0.5868 GB, free: 1.488 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002596/0.7019, allocations: 0.5506 MB / 0.5873 GB, free: 0.918 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.589e-05/0.7019, allocations: 93.06 kB / 0.5874 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.731e-05/0.702, allocations: 3.984 kB / 0.5874 GB, free: 0.8047 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000246/0.7022, allocations: 31.97 kB / 0.5874 GB, free: 0.7734 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.655e-05/0.7023, allocations: 7.984 kB / 0.5874 GB, free: 0.7656 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/0.7023, allocations: 4 kB / 0.5874 GB, free: 0.7617 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.381e-05/0.7023, allocations: 111.3 kB / 0.5875 GB, free: 0.6523 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008217/0.7032, allocations: 28 kB / 0.5876 GB, free: 0.625 MB / 394.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.777e-05/0.7033, allocations: 99.19 kB / 0.5877 GB, free: 0.5195 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009037/0.7042, allocations: 148 kB / 0.5878 GB, free: 384 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.7042, allocations: 4 kB / 0.5878 GB, free: 380 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 6.558e-05/0.7043, allocations: 35.94 kB / 0.5878 GB, free: 344 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001992/0.7045, allocations: 11.91 kB / 0.5878 GB, free: 332 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/0.7057, allocations: 283.3 kB / 0.5881 GB, free: 24 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000324/0.706, allocations: 0.7231 MB / 0.5888 GB, free: 15.27 MB / 410.7 MB Notification: Performance of SimCode: time 2.6e-07/0.706, allocations: 0 / 0.5888 GB, free: 15.27 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat does not exist to compare? outputFormat=mat