Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001134/0.001134, allocations: 183.7 kB / 8.479 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.106/1.106, allocations: 205.2 MB / 214.1 MB, free: 5.453 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008268/0.0008267, allocations: 86.47 kB / 262.1 MB, free: 5.516 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1652/0.1661, allocations: 52.96 MB / 315.1 MB, free: 41.46 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07002/0.2361, allocations: 47.58 MB / 362.6 MB, free: 9.93 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2127/0.4489, allocations: 75.36 MB / 438 MB, free: 10.71 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001744/0.4491, allocations: 64.55 kB / 438.1 MB, free: 10.71 MB / 314.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.005883/0.455, allocations: 2.282 MB / 440.3 MB, free: 10.22 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.107e-05/0.4551, allocations: 11.72 kB / 440.4 MB, free: 10.22 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.756e-05/0.4551, allocations: 13.25 kB / 440.4 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001966/0.4553, allocations: 206.9 kB / 440.6 MB, free: 10 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.067e-06/0.4553, allocations: 3.875 kB / 440.6 MB, free: 10 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.408e-05/0.4554, allocations: 3.844 kB / 440.6 MB, free: 10 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.841e-05/0.4555, allocations: 36.97 kB / 440.6 MB, free: 9.992 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.658e-05/0.4556, allocations: 65.64 kB / 440.7 MB, free: 9.957 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.4556, allocations: 1.391 kB / 440.7 MB, free: 9.957 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.4556, allocations: 0 / 440.7 MB, free: 9.957 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.4556, allocations: 0 / 440.7 MB, free: 9.957 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004206/0.456, allocations: 385.8 kB / 441.1 MB, free: 9.641 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.713e-05/0.4561, allocations: 52.97 kB / 441.1 MB, free: 9.617 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.537e-05/0.4562, allocations: 24.44 kB / 441.1 MB, free: 9.605 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.4562, allocations: 3.906 kB / 441.1 MB, free: 9.605 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.514e-05/0.4562, allocations: 31.12 kB / 441.2 MB, free: 9.566 MB / 314.7 MB Notification: Performance of pre-optimization done (n=5): time 1.463e-06/0.4562, allocations: 5.969 kB / 441.2 MB, free: 9.562 MB / 314.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001582/0.4564, allocations: 70.77 kB / 441.2 MB, free: 9.523 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.693e-05/0.4564, allocations: 52.06 kB / 441.3 MB, free: 9.461 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.885e-05/0.4565, allocations: 124 kB / 441.4 MB, free: 9.367 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.287e-06/0.4565, allocations: 29.2 kB / 441.4 MB, free: 9.336 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.635e-05/0.4565, allocations: 104 kB / 441.5 MB, free: 9.246 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.931e-05/0.4566, allocations: 16.91 kB / 441.6 MB, free: 9.234 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.037e-06/0.4566, allocations: 0 / 441.6 MB, free: 9.234 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.064e-05/0.4566, allocations: 325.1 kB / 441.9 MB, free: 8.918 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.516e-05/0.4566, allocations: 11.12 kB / 441.9 MB, free: 8.918 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.316e-05/0.4567, allocations: 15.33 kB / 441.9 MB, free: 8.918 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.207e-05/0.4567, allocations: 19.31 kB / 441.9 MB, free: 8.918 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.4567, allocations: 0 / 441.9 MB, free: 8.918 MB / 314.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.53e-05/0.4568, allocations: 74.12 kB / 442 MB, free: 8.879 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.087e-06/0.4568, allocations: 3.844 kB / 442 MB, free: 8.879 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.4568, allocations: 8.297 kB / 442 MB, free: 8.875 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.4569, allocations: 3.906 kB / 442 MB, free: 8.871 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002247/0.4571, allocations: 42.98 kB / 442 MB, free: 8.867 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.326e-06/0.4571, allocations: 224 / 442 MB, free: 8.867 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.501e-05/0.4572, allocations: 8.609 kB / 442.1 MB, free: 8.863 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.376e-06/0.4572, allocations: 4.734 kB / 442.1 MB, free: 8.859 MB / 314.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.25e-05/0.4572, allocations: 101.8 kB / 442.2 MB, free: 8.754 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.081e-05/0.4573, allocations: 12.39 kB / 442.2 MB, free: 8.746 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.678e-05/0.4573, allocations: 12.44 kB / 442.2 MB, free: 8.738 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.4573, allocations: 0 / 442.2 MB, free: 8.738 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.4573, allocations: 4 kB / 442.2 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.4573, allocations: 0.6094 kB / 442.2 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001317/0.4575, allocations: 172.2 kB / 442.4 MB, free: 8.578 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.4575, allocations: 0.7969 kB / 442.4 MB, free: 8.578 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001452/0.4576, allocations: 21.22 kB / 442.4 MB, free: 8.578 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.4576, allocations: 7.75 kB / 442.4 MB, free: 8.574 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.758e-06/0.4576, allocations: 3.938 kB / 442.4 MB, free: 8.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.4577, allocations: 0.9844 kB / 442.4 MB, free: 8.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4577, allocations: 0 / 442.4 MB, free: 8.57 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001505/0.4578, allocations: 189.1 kB / 442.6 MB, free: 8.43 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001903/0.458, allocations: 0.5676 MB / 443.1 MB, free: 7.922 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.6e-05/0.458, allocations: 86.14 kB / 443.2 MB, free: 7.824 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.999e-05/0.4581, allocations: 0 / 443.2 MB, free: 7.824 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.119e-05/0.4582, allocations: 13.27 kB / 443.2 MB, free: 7.816 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.892e-05/0.4582, allocations: 5.438 kB / 443.2 MB, free: 7.812 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.4582, allocations: 0 / 443.2 MB, free: 7.812 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.371e-05/0.4583, allocations: 110.7 kB / 443.4 MB, free: 7.734 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007813/0.4591, allocations: 15.41 kB / 443.4 MB, free: 7.734 MB / 314.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.0001152/0.4592, allocations: 100.1 kB / 443.5 MB, free: 7.641 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.216e-05/0.4593, allocations: 36.62 kB / 443.5 MB, free: 7.641 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.4593, allocations: 0 / 443.5 MB, free: 7.641 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.899e-05/0.4593, allocations: 24.17 kB / 443.5 MB, free: 7.633 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000216/0.4595, allocations: 19.47 kB / 443.5 MB, free: 7.629 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004538/0.46, allocations: 174.8 kB / 443.7 MB, free: 7.531 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001641/0.4602, allocations: 0.7224 MB / 444.4 MB, free: 6.828 MB / 314.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4602, allocations: 4 kB / 444.4 MB, free: 6.824 MB / 314.7 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel_res.mat does not exist to compare? outputFormat=mat