Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001092/0.001092, allocations: 202.8 kB / 8.537 MB, free: 1.727 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.13/1.13, allocations: 225.5 MB / 234.4 MB, free: 3.41 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008709/0.0008709, allocations: 96.66 kB / 286.3 MB, free: 5.227 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1605/0.1605, allocations: 45.14 MB / 383.3 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1795/0.3401, allocations: 69.37 MB / 452.7 MB, free: 76.13 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07803/0.4181, allocations: 63.24 MB / 0.5039 GB, free: 12.96 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2364/0.6546, allocations: 88.47 MB / 0.5903 GB, free: 14.07 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001771/0.6548, allocations: 65.09 kB / 0.5903 GB, free: 14.04 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.00898/0.6638, allocations: 3.103 MB / 0.5934 GB, free: 11.36 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.015e-05/0.6638, allocations: 8 kB / 0.5934 GB, free: 11.36 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003209/0.6642, allocations: 43.78 kB / 0.5934 GB, free: 11.31 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001379/0.6643, allocations: 178.9 kB / 0.5936 GB, free: 11.1 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.6643, allocations: 4 kB / 0.5936 GB, free: 11.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.058e-05/0.6643, allocations: 7.5 kB / 0.5936 GB, free: 11.09 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001202/0.6645, allocations: 49.55 kB / 0.5936 GB, free: 11.06 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001573/0.6646, allocations: 101.7 kB / 0.5937 GB, free: 10.96 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.6647, allocations: 4 kB / 0.5937 GB, free: 10.96 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.6647, allocations: 3.906 kB / 0.5937 GB, free: 10.95 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.6647, allocations: 4 kB / 0.5937 GB, free: 10.95 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005997/0.6653, allocations: 425.6 kB / 0.5941 GB, free: 10.54 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.945e-05/0.6654, allocations: 47.7 kB / 0.5942 GB, free: 10.5 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.247e-05/0.6654, allocations: 23.72 kB / 0.5942 GB, free: 10.48 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.524e-05/0.6655, allocations: 0 / 0.5942 GB, free: 10.48 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.864e-05/0.6655, allocations: 38.5 kB / 0.5943 GB, free: 10.43 MB / 394.7 MB Notification: Performance of pre-optimization done (n=4): time 9.62e-07/0.6655, allocations: 0 / 0.5943 GB, free: 10.43 MB / 394.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007036/0.6662, allocations: 189.3 kB / 0.5944 GB, free: 10.27 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.134e-05/0.6663, allocations: 102.8 kB / 0.5945 GB, free: 10.14 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.716e-05/0.6664, allocations: 125.8 kB / 0.5946 GB, free: 10.03 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.6664, allocations: 29.33 kB / 0.5947 GB, free: 9.996 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.696e-05/0.6664, allocations: 115.2 kB / 0.5948 GB, free: 9.879 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.667e-05/0.6665, allocations: 15.53 kB / 0.5948 GB, free: 9.867 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.043e-06/0.6665, allocations: 0 / 0.5948 GB, free: 9.867 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.914e-05/0.6666, allocations: 322.1 kB / 0.5951 GB, free: 9.547 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.319e-05/0.6666, allocations: 22.69 kB / 0.5951 GB, free: 9.535 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.5e-05/0.6667, allocations: 66.53 kB / 0.5952 GB, free: 9.469 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.943e-05/0.6668, allocations: 26.84 kB / 0.5952 GB, free: 9.453 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.01e-07/0.6668, allocations: 0 / 0.5952 GB, free: 9.453 MB / 394.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001855/0.667, allocations: 110.5 kB / 0.5953 GB, free: 9.359 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.667, allocations: 11.12 kB / 0.5953 GB, free: 9.352 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.667, allocations: 3.938 kB / 0.5953 GB, free: 9.348 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.176e-06/0.667, allocations: 64 / 0.5953 GB, free: 9.348 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000682/0.6677, allocations: 99.97 kB / 0.5954 GB, free: 9.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001217/0.669, allocations: 1.332 MB / 0.5967 GB, free: 7.828 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002483/0.6692, allocations: 32.16 kB / 0.5968 GB, free: 7.797 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.6692, allocations: 7.984 kB / 0.5968 GB, free: 7.789 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 7.243e-05/0.6693, allocations: 108.9 kB / 0.5969 GB, free: 7.676 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.89e-05/0.6694, allocations: 11.91 kB / 0.5969 GB, free: 7.664 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001618/0.6695, allocations: 93.11 kB / 0.597 GB, free: 7.586 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.6695, allocations: 3.984 kB / 0.597 GB, free: 7.582 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.42e-07/0.6695, allocations: 0 / 0.597 GB, free: 7.582 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.6696, allocations: 0 / 0.597 GB, free: 7.582 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004084/0.67, allocations: 368 kB / 0.5973 GB, free: 7.219 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.67, allocations: 0 / 0.5973 GB, free: 7.219 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002131/0.6702, allocations: 39.91 kB / 0.5974 GB, free: 7.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.6702, allocations: 4 kB / 0.5974 GB, free: 7.176 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.6702, allocations: 3.938 kB / 0.5974 GB, free: 7.176 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.6702, allocations: 0 / 0.5974 GB, free: 7.176 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.6702, allocations: 0 / 0.5974 GB, free: 7.176 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001717/0.6704, allocations: 181 kB / 0.5976 GB, free: 7 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002776/0.6707, allocations: 0.5553 MB / 0.5981 GB, free: 6.445 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.887e-05/0.6708, allocations: 85.2 kB / 0.5982 GB, free: 6.344 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.535e-05/0.6708, allocations: 0 / 0.5982 GB, free: 6.344 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000261/0.6711, allocations: 43.91 kB / 0.5982 GB, free: 6.301 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.867e-05/0.6711, allocations: 11.75 kB / 0.5982 GB, free: 6.293 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.6711, allocations: 7.984 kB / 0.5982 GB, free: 6.285 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.321e-05/0.6712, allocations: 104.8 kB / 0.5983 GB, free: 6.191 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008847/0.6721, allocations: 31.94 kB / 0.5984 GB, free: 6.16 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 8.202e-05/0.6722, allocations: 91.25 kB / 0.5985 GB, free: 6.062 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009304/0.6731, allocations: 164.7 kB / 0.5986 GB, free: 5.926 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.6731, allocations: 0 / 0.5986 GB, free: 5.926 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 6.16e-05/0.6732, allocations: 26.31 kB / 0.5986 GB, free: 5.91 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001811/0.6734, allocations: 15.39 kB / 0.5987 GB, free: 5.898 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001236/0.6746, allocations: 282.5 kB / 0.5989 GB, free: 5.613 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002684/0.6749, allocations: 0.7382 MB / 0.5996 GB, free: 4.852 MB / 394.7 MB Notification: Performance of SimCode: time 2.9e-07/0.6749, allocations: 7.938 kB / 0.5996 GB, free: 4.844 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Analog_TestSaturatingInductor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Electrical_Analog_TestSaturatingInductor.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat does not exist to compare? outputFormat=mat