Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.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.Translational.Examples.Accelerate,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Accelerate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Accelerate,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Accelerate",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.0009837/0.000984, allocations: 186.4 kB / 8.134 MB, free: 2.195 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.084/1.084, allocations: 221.4 MB / 229.9 MB, free: 3.086 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.0008456/0.0008455, allocations: 106.5 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08463/0.08551, allocations: 55.81 MB / 336.6 MB, free: 9.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1703/0.2558, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07366/0.3295, allocations: 75.52 MB / 462.5 MB, free: 11.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000167/0.3297, allocations: 59.97 kB / 462.6 MB, free: 11.21 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.003466/0.3332, allocations: 1.388 MB / 464 MB, free: 9.801 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.022e-05/0.3332, allocations: 8 kB / 464 MB, free: 9.793 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.896e-05/0.3332, allocations: 9.125 kB / 464 MB, free: 9.785 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001586/0.3334, allocations: 179 kB / 464.2 MB, free: 9.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.694e-06/0.3334, allocations: 0 / 464.2 MB, free: 9.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.866e-05/0.3335, allocations: 4.5 kB / 464.2 MB, free: 9.566 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.935e-05/0.3335, allocations: 36.58 kB / 464.2 MB, free: 9.531 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.429e-05/0.3337, allocations: 61.53 kB / 464.3 MB, free: 9.469 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.3337, allocations: 0.8438 kB / 464.3 MB, free: 9.469 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.3337, allocations: 4 kB / 464.3 MB, free: 9.465 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.3337, allocations: 4 kB / 464.3 MB, free: 9.461 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005357/0.3342, allocations: 356.1 kB / 464.6 MB, free: 9.066 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.792e-05/0.3343, allocations: 45.7 kB / 464.7 MB, free: 9.016 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.274e-05/0.3344, allocations: 22.33 kB / 464.7 MB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.958e-06/0.3344, allocations: 4 kB / 464.7 MB, free: 8.992 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.569e-05/0.3344, allocations: 34.56 kB / 464.7 MB, free: 8.949 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.3344, allocations: 0 / 464.7 MB, free: 8.949 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005731/0.335, allocations: 473.1 kB / 465.2 MB, free: 8.395 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.261e-05/0.335, allocations: 51.41 kB / 465.2 MB, free: 8.332 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.844e-05/0.3351, allocations: 108.9 kB / 465.3 MB, free: 8.219 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.3351, allocations: 25.7 kB / 465.4 MB, free: 8.188 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.766e-05/0.3351, allocations: 96.11 kB / 465.5 MB, free: 8.09 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.3352, allocations: 27.56 kB / 465.5 MB, free: 8.062 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.486e-06/0.3352, allocations: 0 / 465.5 MB, free: 8.062 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.951e-05/0.3353, allocations: 322.7 kB / 465.8 MB, free: 7.738 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.036e-05/0.3353, allocations: 20 kB / 465.8 MB, free: 7.719 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.04e-05/0.3354, allocations: 53.16 kB / 465.9 MB, free: 7.648 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.247e-05/0.3354, allocations: 27.92 kB / 465.9 MB, free: 7.621 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.32e-07/0.3354, allocations: 0 / 465.9 MB, free: 7.621 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001456/0.3356, allocations: 90.17 kB / 466 MB, free: 7.527 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.3356, allocations: 8 kB / 466 MB, free: 7.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.912e-06/0.3356, allocations: 4.094 kB / 466 MB, free: 7.516 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.3356, allocations: 7.938 kB / 466 MB, free: 7.508 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.204e-05/0.3357, allocations: 26.42 kB / 466 MB, free: 7.484 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.3357, allocations: 4 kB / 466 MB, free: 7.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.708e-05/0.3358, allocations: 0 / 466 MB, free: 7.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.656e-06/0.3358, allocations: 4.75 kB / 466 MB, free: 7.477 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.507e-05/0.3358, allocations: 105 kB / 466.1 MB, free: 7.367 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.004e-05/0.3359, allocations: 7.891 kB / 466.2 MB, free: 7.359 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.31e-05/0.3359, allocations: 12.38 kB / 466.2 MB, free: 7.344 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.3359, allocations: 7.938 kB / 466.2 MB, free: 7.336 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.3359, allocations: 0 / 466.2 MB, free: 7.336 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3359, allocations: 0 / 466.2 MB, free: 7.336 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003718/0.3363, allocations: 375.2 kB / 466.5 MB, free: 6.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.3363, allocations: 9.094 kB / 466.5 MB, free: 6.902 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.385e-05/0.3364, allocations: 19.98 kB / 466.6 MB, free: 6.883 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.3364, allocations: 0 / 466.6 MB, free: 6.883 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.3365, allocations: 4.188 kB / 466.6 MB, free: 6.879 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3365, allocations: 0 / 466.6 MB, free: 6.879 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3365, allocations: 4 kB / 466.6 MB, free: 6.875 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001987/0.3367, allocations: 288.1 kB / 466.9 MB, free: 6.531 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002858/0.337, allocations: 0.6686 MB / 467.5 MB, free: 5.793 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.362e-05/0.337, allocations: 81.11 kB / 467.6 MB, free: 5.695 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.562e-05/0.337, allocations: 0.875 kB / 467.6 MB, free: 5.695 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.424e-05/0.3371, allocations: 7.906 kB / 467.6 MB, free: 5.688 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.373e-05/0.3371, allocations: 3.984 kB / 467.6 MB, free: 5.684 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.181e-06/0.3371, allocations: 8 kB / 467.6 MB, free: 5.676 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.169e-05/0.3372, allocations: 90.23 kB / 467.7 MB, free: 5.59 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007745/0.338, allocations: 12 kB / 467.7 MB, free: 5.578 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (accelerate.s,accelerate.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 9 * 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 9.451e-05/0.3381, allocations: 99.44 kB / 467.8 MB, free: 5.473 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.683e-05/0.3382, allocations: 51.86 kB / 467.9 MB, free: 5.422 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3382, allocations: 0 / 467.9 MB, free: 5.422 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.146e-05/0.3382, allocations: 27.94 kB / 467.9 MB, free: 5.395 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001971/0.3384, allocations: 11.42 kB / 467.9 MB, free: 5.387 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003916/0.3388, allocations: 268 kB / 468.2 MB, free: 5.094 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002416/0.3391, allocations: 0.7036 MB / 468.9 MB, free: 4.363 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3391, allocations: 0 / 468.9 MB, free: 4.363 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Accelerate_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Accelerate.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate_res.mat does not exist to compare? outputFormat=mat