Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.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.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing",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.0009914/0.0009914, allocations: 180 kB / 8.478 MB, free: 1.875 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.213/1.213, allocations: 205.2 MB / 214.1 MB, free: 5.441 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.0008432/0.0008434, allocations: 82.33 kB / 262.1 MB, free: 5.504 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1612/0.1621, allocations: 52.97 MB / 315.1 MB, free: 41.45 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0658/0.2279, allocations: 47.58 MB / 362.6 MB, free: 9.918 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2176/0.4455, allocations: 77.11 MB / 439.7 MB, free: 10.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001773/0.4457, allocations: 68.08 kB / 439.8 MB, free: 10.7 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.01142/0.4572, allocations: 4.488 MB / 444.3 MB, free: 9.996 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.4572, allocations: 11.69 kB / 444.3 MB, free: 9.996 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.419e-05/0.4573, allocations: 27.03 kB / 444.3 MB, free: 9.98 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002217/0.4575, allocations: 232 kB / 444.6 MB, free: 9.758 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.4575, allocations: 7.719 kB / 444.6 MB, free: 9.758 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.711e-05/0.4576, allocations: 23.12 kB / 444.6 MB, free: 9.75 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002521/0.4578, allocations: 135.8 kB / 444.7 MB, free: 9.75 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002856/0.4581, allocations: 175.1 kB / 444.9 MB, free: 9.703 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.4581, allocations: 8.797 kB / 444.9 MB, free: 9.699 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.02e-05/0.4582, allocations: 0 / 444.9 MB, free: 9.699 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.313e-06/0.4582, allocations: 3.969 kB / 444.9 MB, free: 9.699 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009886/0.4592, allocations: 0.7042 MB / 445.6 MB, free: 9.375 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002308/0.4594, allocations: 119.6 kB / 445.7 MB, free: 9.359 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001195/0.4596, allocations: 90.28 kB / 445.8 MB, free: 9.348 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.829e-05/0.4596, allocations: 8.219 kB / 445.8 MB, free: 9.344 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.167e-05/0.4596, allocations: 34 kB / 445.9 MB, free: 9.305 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 1.383e-06/0.4596, allocations: 0 / 445.9 MB, free: 9.305 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.0009398/0.4605, allocations: 0.7638 MB / 446.6 MB, free: 8.809 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.987e-05/0.4606, allocations: 55.28 kB / 446.7 MB, free: 8.746 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.793e-05/0.4607, allocations: 127.9 kB / 446.8 MB, free: 8.652 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.375e-05/0.4607, allocations: 25.7 kB / 446.8 MB, free: 8.621 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.941e-05/0.4608, allocations: 135.8 kB / 447 MB, free: 8.512 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.378e-05/0.4608, allocations: 97.45 kB / 447.1 MB, free: 8.445 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.306e-06/0.4608, allocations: 0.875 kB / 447.1 MB, free: 8.445 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.471e-05/0.4609, allocations: 339.3 kB / 447.4 MB, free: 8.129 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.803e-05/0.461, allocations: 51.91 kB / 447.4 MB, free: 8.129 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001056/0.4611, allocations: 98.12 kB / 447.5 MB, free: 8.09 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000113/0.4612, allocations: 67.48 kB / 447.6 MB, free: 8.086 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.4612, allocations: 3.938 kB / 447.6 MB, free: 8.082 MB / 314.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002695/0.4615, allocations: 211.5 kB / 447.8 MB, free: 8.027 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.4615, allocations: 3.906 kB / 447.8 MB, free: 8.027 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.4615, allocations: 8.312 kB / 447.8 MB, free: 8.023 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.4616, allocations: 0 / 447.8 MB, free: 8.023 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003171/0.4619, allocations: 80.66 kB / 447.9 MB, free: 8.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.4619, allocations: 4.656 kB / 447.9 MB, free: 8.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001311/0.462, allocations: 18.14 kB / 447.9 MB, free: 8.012 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.505e-05/0.4621, allocations: 12.12 kB / 447.9 MB, free: 8.012 MB / 314.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.694e-05/0.4621, allocations: 104.9 kB / 448 MB, free: 7.902 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.136e-05/0.4622, allocations: 19.95 kB / 448.1 MB, free: 7.895 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.773e-05/0.4622, allocations: 21.5 kB / 448.1 MB, free: 7.891 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.4622, allocations: 4.406 kB / 448.1 MB, free: 7.891 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.4622, allocations: 4 kB / 448.1 MB, free: 7.887 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.4623, allocations: 1.875 kB / 448.1 MB, free: 7.887 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006688/0.4629, allocations: 0.5619 MB / 448.6 MB, free: 7.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.4629, allocations: 0.6562 kB / 448.6 MB, free: 7.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003693/0.4633, allocations: 88.42 kB / 448.7 MB, free: 7.578 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.4633, allocations: 0 / 448.7 MB, free: 7.578 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.4634, allocations: 4.406 kB / 448.7 MB, free: 7.578 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.4634, allocations: 0.5625 kB / 448.7 MB, free: 7.578 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.4634, allocations: 3.844 kB / 448.7 MB, free: 7.578 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003632/0.4637, allocations: 408.6 kB / 449.1 MB, free: 7.367 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000468/0.4642, allocations: 0.8412 MB / 450 MB, free: 6.801 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.287e-05/0.4643, allocations: 94.05 kB / 450.1 MB, free: 6.695 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.235e-05/0.4643, allocations: 7.609 kB / 450.1 MB, free: 6.695 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.4645, allocations: 9.828 kB / 450.1 MB, free: 6.695 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.052e-05/0.4645, allocations: 14.47 kB / 450.1 MB, free: 6.691 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.4645, allocations: 12.09 kB / 450.1 MB, free: 6.691 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.605e-05/0.4646, allocations: 105 kB / 450.2 MB, free: 6.613 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008679/0.4655, allocations: 47.06 kB / 450.3 MB, free: 6.613 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (shaft.phi,shaft.w,load.phi,load.w,springDamper.phi_rel,springDamper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * 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.000105/0.4656, allocations: 103.7 kB / 450.4 MB, free: 6.523 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002326/0.4658, allocations: 156.8 kB / 450.5 MB, free: 6.516 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.4658, allocations: 0 / 450.5 MB, free: 6.516 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001029/0.4659, allocations: 92.95 kB / 450.6 MB, free: 6.508 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003075/0.4663, allocations: 36.25 kB / 450.6 MB, free: 6.492 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.4673, allocations: 0.6703 MB / 451.3 MB, free: 6.07 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002486/0.4676, allocations: 0.799 MB / 452.1 MB, free: 5.355 MB / 314.7 MB Notification: Performance of SimCode: time 3.2e-07/0.4676, allocations: 0 / 452.1 MB, free: 5.355 MB / 314.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat does not exist to compare? outputFormat=mat