Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.InverseModel.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) 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(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_InverseModel",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.002371/0.002371, allocations: 202.3 kB / 8.541 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 225.5 MB / 234.4 MB, free: 3.375 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001084/0.001084, allocations: 92.47 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1108/0.1119, allocations: 56.9 MB / 343.2 MB, free: 8.598 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08928/0.2012, allocations: 51.47 MB / 394.7 MB, free: 5.082 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2711/0.4724, allocations: 77 MB / 471.7 MB, free: 14.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001446/0.4726, allocations: 65.41 kB / 471.8 MB, free: 14.44 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.006538/0.4791, allocations: 2.436 MB / 474.2 MB, free: 12.98 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.4792, allocations: 8 kB / 474.2 MB, free: 12.97 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001516/0.4793, allocations: 27.8 kB / 474.2 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002018/0.4795, allocations: 204.9 kB / 474.4 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.4796, allocations: 7.281 kB / 474.4 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.389e-05/0.4796, allocations: 4 kB / 474.4 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.627e-05/0.4797, allocations: 30.69 kB / 474.5 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001037/0.4798, allocations: 62.98 kB / 474.5 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.4798, allocations: 4.875 kB / 474.5 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.4798, allocations: 0 / 474.5 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.4798, allocations: 0 / 474.5 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004547/0.4803, allocations: 386.7 kB / 474.9 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.992e-05/0.4804, allocations: 51.36 kB / 475 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.817e-05/0.4805, allocations: 23.34 kB / 475 MB, free: 12.21 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.232e-05/0.4805, allocations: 8 kB / 475 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.024e-05/0.4805, allocations: 30.56 kB / 475 MB, free: 12.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.113e-06/0.4805, allocations: 0 / 475 MB, free: 12.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001606/0.4807, allocations: 63.44 kB / 475.1 MB, free: 12.11 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.505e-05/0.4807, allocations: 52.72 kB / 475.1 MB, free: 12.04 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.56e-05/0.4808, allocations: 129.7 kB / 475.3 MB, free: 11.93 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.04e-05/0.4808, allocations: 33.03 kB / 475.3 MB, free: 11.89 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.641e-05/0.4808, allocations: 103.1 kB / 475.4 MB, free: 11.8 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.172e-05/0.4808, allocations: 22.45 kB / 475.4 MB, free: 11.78 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-06/0.4809, allocations: 0 / 475.4 MB, free: 11.78 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.438e-05/0.4809, allocations: 317.3 kB / 475.7 MB, free: 11.47 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.658e-05/0.4809, allocations: 11.88 kB / 475.7 MB, free: 11.46 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.505e-05/0.481, allocations: 14.5 kB / 475.8 MB, free: 11.45 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.311e-05/0.481, allocations: 18.06 kB / 475.8 MB, free: 11.45 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.481, allocations: 0 / 475.8 MB, free: 11.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001073/0.4812, allocations: 71.83 kB / 475.8 MB, free: 11.38 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.995e-06/0.4812, allocations: 4 kB / 475.8 MB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-06/0.4812, allocations: 4 kB / 475.9 MB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.027e-05/0.4812, allocations: 6.625 kB / 475.9 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002239/0.4814, allocations: 38.61 kB / 475.9 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.4814, allocations: 3.516 kB / 475.9 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.613e-05/0.4815, allocations: 6.531 kB / 475.9 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.854e-06/0.4815, allocations: 3.938 kB / 475.9 MB, free: 11.33 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 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 4.245e-05/0.4816, allocations: 109 kB / 476 MB, free: 11.22 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.221e-05/0.4816, allocations: 11.81 kB / 476 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.842e-05/0.4816, allocations: 10.67 kB / 476 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.4816, allocations: 3.984 kB / 476 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.4817, allocations: 7.5 kB / 476 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-06/0.4817, allocations: 0 / 476 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001313/0.4818, allocations: 171 kB / 476.2 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.4818, allocations: 0 / 476.2 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001532/0.482, allocations: 19 kB / 476.2 MB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.482, allocations: 6.625 kB / 476.2 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.482, allocations: 11.56 kB / 476.3 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.482, allocations: 0 / 476.3 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.482, allocations: 0 / 476.3 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000164/0.4822, allocations: 183.2 kB / 476.4 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001958/0.4824, allocations: 0.5788 MB / 477 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.48e-05/0.4824, allocations: 85.02 kB / 477.1 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.913e-05/0.4824, allocations: 0 / 477.1 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.43e-05/0.4825, allocations: 11.23 kB / 477.1 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.455e-05/0.4826, allocations: 2.562 kB / 477.1 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-06/0.4826, allocations: 0 / 477.1 MB, free: 10.16 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.296e-05/0.4826, allocations: 104.1 kB / 477.2 MB, free: 10.07 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007965/0.4834, allocations: 20 kB / 477.2 MB, free: 10.05 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (firstOrder1.y,firstOrder2.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * 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.0001293/0.4836, allocations: 102.5 kB / 477.3 MB, free: 9.938 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001125/0.4837, allocations: 41.28 kB / 477.4 MB, free: 9.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.4837, allocations: 0 / 477.4 MB, free: 9.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.362e-05/0.4837, allocations: 17.81 kB / 477.4 MB, free: 9.898 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002578/0.484, allocations: 21.97 kB / 477.4 MB, free: 9.887 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005176/0.4845, allocations: 170.5 kB / 477.6 MB, free: 9.73 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001769/0.4847, allocations: 0.7266 MB / 478.3 MB, free: 8.996 MB / 346.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4847, allocations: 0 / 478.3 MB, free: 8.996 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.InverseModel_res.mat does not exist to compare? outputFormat=mat