Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 183.8 kB / 8.137 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.069/1.069, allocations: 221.4 MB / 229.9 MB, free: 3.172 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008329/0.0008329, allocations: 98.62 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09537/0.09624, allocations: 55.82 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.2735, allocations: 50.39 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07705/0.3506, allocations: 77.95 MB / 464.9 MB, free: 8.809 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/0.3508, allocations: 67.97 kB / 465 MB, free: 8.742 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.01165/0.3625, allocations: 4.622 MB / 469.6 MB, free: 4.098 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.3626, allocations: 8 kB / 469.6 MB, free: 4.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.434e-05/0.3626, allocations: 27.62 kB / 469.7 MB, free: 4.062 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002078/0.3628, allocations: 231.2 kB / 469.9 MB, free: 3.793 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.3628, allocations: 12 kB / 469.9 MB, free: 3.781 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.229e-05/0.3629, allocations: 21.59 kB / 469.9 MB, free: 3.762 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002516/0.3632, allocations: 137.3 kB / 470.1 MB, free: 3.629 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002678/0.3634, allocations: 168.8 kB / 470.2 MB, free: 3.457 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.3635, allocations: 0 / 470.2 MB, free: 3.457 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.3635, allocations: 0 / 470.2 MB, free: 3.457 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.3635, allocations: 8 kB / 470.2 MB, free: 3.449 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009732/0.3645, allocations: 0.7066 MB / 470.9 MB, free: 2.695 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000255/0.3647, allocations: 116.5 kB / 471.1 MB, free: 2.578 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001372/0.3649, allocations: 88.86 kB / 471.1 MB, free: 2.488 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.994e-05/0.3649, allocations: 4 kB / 471.1 MB, free: 2.484 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.968e-05/0.3649, allocations: 30.56 kB / 471.2 MB, free: 2.445 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 1.523e-06/0.3649, allocations: 0 / 471.2 MB, free: 2.445 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.001097/0.366, allocations: 0.771 MB / 471.9 MB, free: 1.586 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.846e-05/0.3661, allocations: 55.34 kB / 472 MB, free: 1.52 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.569e-05/0.3662, allocations: 125.7 kB / 472.1 MB, free: 1.391 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.3662, allocations: 25.7 kB / 472.2 MB, free: 1.359 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.403e-05/0.3663, allocations: 136.3 kB / 472.3 MB, free: 1.223 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.321e-05/0.3663, allocations: 102.5 kB / 472.4 MB, free: 1.121 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.636e-06/0.3664, allocations: 4.844 kB / 472.4 MB, free: 1.117 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.981e-05/0.3665, allocations: 326.8 kB / 472.7 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.434e-05/0.3666, allocations: 52 kB / 472.8 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001262/0.3667, allocations: 91.42 kB / 472.8 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001141/0.3668, allocations: 64.47 kB / 472.9 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.52e-07/0.3668, allocations: 4 kB / 472.9 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000311/0.3671, allocations: 213.3 kB / 473.1 MB, free: 364 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.157e-05/0.3672, allocations: 4 kB / 473.1 MB, free: 360 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.3672, allocations: 4 kB / 473.1 MB, free: 356 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.3672, allocations: 1.969 kB / 473.1 MB, free: 356 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003243/0.3675, allocations: 83.89 kB / 473.2 MB, free: 272 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.82e-06/0.3675, allocations: 96 / 473.2 MB, free: 272 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001271/0.3677, allocations: 19.92 kB / 473.2 MB, free: 252 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.485e-05/0.3677, allocations: 8 kB / 473.2 MB, free: 244 kB / 346.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 7.027e-05/0.3678, allocations: 105 kB / 473.3 MB, free: 132 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.001e-05/0.3678, allocations: 19.75 kB / 473.4 MB, free: 112 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.355e-05/0.3679, allocations: 29.64 kB / 473.4 MB, free: 84 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.3679, allocations: 11.98 kB / 473.4 MB, free: 72 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3679, allocations: 4 kB / 473.4 MB, free: 68 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.3679, allocations: 0 / 473.4 MB, free: 68 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007082/0.3686, allocations: 0.559 MB / 474 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3686, allocations: 0 / 474 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00036/0.369, allocations: 83.95 kB / 474.1 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.369, allocations: 3.906 kB / 474.1 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.655e-05/0.369, allocations: 4 kB / 474.1 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.369, allocations: 0 / 474.1 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.369, allocations: 0 / 474.1 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004226/0.3695, allocations: 419 kB / 474.5 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000603/0.3701, allocations: 0.8336 MB / 475.3 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.814e-05/0.3701, allocations: 96.83 kB / 475.4 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.166e-05/0.3702, allocations: 10.05 kB / 475.4 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001521/0.3703, allocations: 11.94 kB / 475.4 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.1e-05/0.3704, allocations: 15.97 kB / 475.4 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.26e-05/0.3704, allocations: 12 kB / 475.4 MB, free: 13.89 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.477e-05/0.3705, allocations: 103.3 kB / 475.5 MB, free: 13.79 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008138/0.3713, allocations: 48 kB / 475.6 MB, free: 13.74 MB / 362.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.0001135/0.3714, allocations: 103.2 kB / 475.7 MB, free: 13.63 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002541/0.3717, allocations: 163.9 kB / 475.9 MB, free: 13.47 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.3717, allocations: 0 / 475.9 MB, free: 13.47 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001131/0.3718, allocations: 87.94 kB / 475.9 MB, free: 13.39 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.3721, allocations: 28.2 kB / 476 MB, free: 13.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/0.3731, allocations: 0.6697 MB / 476.6 MB, free: 12.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003875/0.3735, allocations: 0.7944 MB / 477.4 MB, free: 11.84 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3735, allocations: 0 / 477.4 MB, free: 11.84 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat does not exist to compare? outputFormat=mat