Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.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.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_IntegratorForceState",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.001019/0.001019, allocations: 202.3 kB / 8.54 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.138/1.138, allocations: 225.5 MB / 234.4 MB, free: 3.32 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009104/0.0009105, allocations: 87.61 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1678/0.1678, allocations: 45.14 MB / 383.3 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2097/0.3775, allocations: 69.36 MB / 452.7 MB, free: 76.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08974/0.4673, allocations: 63.25 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2807/0.748, allocations: 86.39 MB / 0.5882 GB, free: 416 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001835/0.7483, allocations: 59.34 kB / 0.5883 GB, free: 388 kB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.002816/0.7511, allocations: 1.059 MB / 0.5893 GB, free: 15.42 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.7512, allocations: 11.98 kB / 0.5893 GB, free: 15.41 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.011e-05/0.7512, allocations: 7.906 kB / 0.5893 GB, free: 15.4 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002046/0.7514, allocations: 178.7 kB / 0.5895 GB, free: 15.19 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.7514, allocations: 0 / 0.5895 GB, free: 15.19 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.902e-05/0.7515, allocations: 7.984 kB / 0.5895 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.772e-05/0.7516, allocations: 15.38 kB / 0.5895 GB, free: 15.17 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001087/0.7517, allocations: 55.7 kB / 0.5896 GB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.7517, allocations: 3.938 kB / 0.5896 GB, free: 15.1 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.7517, allocations: 0.875 kB / 0.5896 GB, free: 15.1 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.7517, allocations: 4 kB / 0.5896 GB, free: 15.1 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000505/0.7522, allocations: 414.3 kB / 0.59 GB, free: 14.66 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001178/0.7524, allocations: 28.83 kB / 0.59 GB, free: 14.63 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.712e-05/0.7524, allocations: 11.55 kB / 0.59 GB, free: 14.62 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.103e-05/0.7524, allocations: 3.906 kB / 0.59 GB, free: 14.62 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.241e-05/0.7525, allocations: 38.5 kB / 0.5901 GB, free: 14.57 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 2.024e-06/0.7525, allocations: 4 kB / 0.5901 GB, free: 14.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002953/0.7528, allocations: 73.69 kB / 0.5901 GB, free: 14.5 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.153e-05/0.7528, allocations: 51.41 kB / 0.5902 GB, free: 14.44 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.552e-05/0.7529, allocations: 101.5 kB / 0.5903 GB, free: 14.33 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.203e-05/0.7529, allocations: 25.7 kB / 0.5903 GB, free: 14.3 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.334e-05/0.753, allocations: 91.16 kB / 0.5904 GB, free: 14.21 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.546e-05/0.753, allocations: 19.31 kB / 0.5904 GB, free: 14.2 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.216e-06/0.753, allocations: 0 / 0.5904 GB, free: 14.2 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.996e-05/0.7531, allocations: 319.2 kB / 0.5907 GB, free: 13.88 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.304e-05/0.7531, allocations: 19.23 kB / 0.5907 GB, free: 13.86 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.088e-05/0.7532, allocations: 30.19 kB / 0.5908 GB, free: 13.82 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.861e-05/0.7532, allocations: 11.44 kB / 0.5908 GB, free: 13.82 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-07/0.7532, allocations: 3.938 kB / 0.5908 GB, free: 13.81 MB / 394.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001066/0.7533, allocations: 71.91 kB / 0.5909 GB, free: 13.74 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.003e-05/0.7533, allocations: 4 kB / 0.5909 GB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.7533, allocations: 4 kB / 0.5909 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.7534, allocations: 3.984 kB / 0.5909 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.085e-05/0.7534, allocations: 16 kB / 0.5909 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.7535, allocations: 0 / 0.5909 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.502e-05/0.7535, allocations: 7.938 kB / 0.5909 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.7535, allocations: 0 / 0.5909 GB, free: 13.71 MB / 394.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: 1 (integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 5.762e-05/0.7536, allocations: 109.1 kB / 0.591 GB, free: 13.59 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.87e-05/0.7536, allocations: 7.891 kB / 0.591 GB, free: 13.59 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.685e-05/0.7537, allocations: 11.12 kB / 0.591 GB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.7537, allocations: 0 / 0.591 GB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.7537, allocations: 224 / 0.591 GB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.7537, allocations: 0 / 0.591 GB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001358/0.7538, allocations: 153.1 kB / 0.5912 GB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.7538, allocations: 0 / 0.5912 GB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.319e-05/0.7539, allocations: 16.23 kB / 0.5912 GB, free: 13.37 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.7539, allocations: 0 / 0.5912 GB, free: 13.37 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.7539, allocations: 0 / 0.5912 GB, free: 13.37 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.7539, allocations: 3.984 kB / 0.5912 GB, free: 13.37 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.754, allocations: 0 / 0.5912 GB, free: 13.37 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001506/0.7541, allocations: 169.9 kB / 0.5913 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002364/0.7544, allocations: 0.5334 MB / 0.5919 GB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.782e-05/0.7544, allocations: 84.58 kB / 0.5919 GB, free: 12.56 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.378e-05/0.7544, allocations: 4 kB / 0.5919 GB, free: 12.56 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.115e-05/0.7545, allocations: 4.078 kB / 0.5919 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.554e-05/0.7545, allocations: 4 kB / 0.5919 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.297e-06/0.7545, allocations: 0 / 0.5919 GB, free: 12.55 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.28e-05/0.7546, allocations: 86.03 kB / 0.592 GB, free: 12.47 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000773/0.7554, allocations: 7.906 kB / 0.592 GB, free: 12.46 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (gain.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 0.0001012/0.7555, allocations: 107.2 kB / 0.5921 GB, free: 12.35 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.088e-05/0.7556, allocations: 25.72 kB / 0.5922 GB, free: 12.33 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.7556, allocations: 0 / 0.5922 GB, free: 12.33 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.294e-05/0.7556, allocations: 15.31 kB / 0.5922 GB, free: 12.32 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001995/0.7558, allocations: 15.36 kB / 0.5922 GB, free: 12.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003251/0.7562, allocations: 94.36 kB / 0.5923 GB, free: 12.19 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000254/0.7564, allocations: 0.7034 MB / 0.593 GB, free: 11.46 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.7564, allocations: 0 / 0.593 GB, free: 11.46 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_IntegratorForceState_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_IntegratorForceState.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState_res.mat does not exist to compare? outputFormat=mat