Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.SignConvention.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.SignConvention,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_SignConvention",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.SignConvention,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_SignConvention",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.0009413/0.0009413, allocations: 183.4 kB / 8.13 MB, free: 2.219 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.068/1.068, allocations: 221.4 MB / 229.9 MB, free: 3.074 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.0008121/0.0008121, allocations: 94.22 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08809/0.08893, allocations: 55.81 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.2556, allocations: 50.4 MB / 387 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07115/0.3268, allocations: 75.76 MB / 462.7 MB, free: 11.04 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001589/0.327, allocations: 71.66 kB / 462.8 MB, free: 10.97 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.007285/0.3343, allocations: 2.974 MB / 465.8 MB, free: 7.965 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.882e-05/0.3344, allocations: 8.188 kB / 465.8 MB, free: 7.957 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.613e-05/0.3344, allocations: 27.7 kB / 465.8 MB, free: 7.93 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001834/0.3346, allocations: 210.7 kB / 466 MB, free: 7.684 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.3346, allocations: 8 kB / 466 MB, free: 7.676 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.863e-05/0.3347, allocations: 13.59 kB / 466.1 MB, free: 7.664 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001699/0.3348, allocations: 82.38 kB / 466.1 MB, free: 7.586 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002088/0.335, allocations: 153.7 kB / 466.3 MB, free: 7.414 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.3351, allocations: 7.844 kB / 466.3 MB, free: 7.406 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.3351, allocations: 4.734 kB / 466.3 MB, free: 7.402 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.3351, allocations: 4 kB / 466.3 MB, free: 7.398 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.3362, allocations: 0.9046 MB / 467.2 MB, free: 6.422 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001008/0.3363, allocations: 95.86 kB / 467.3 MB, free: 6.301 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.298e-05/0.3363, allocations: 42.56 kB / 467.3 MB, free: 6.25 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.065e-05/0.3364, allocations: 4 kB / 467.3 MB, free: 6.246 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.705e-05/0.3364, allocations: 34.5 kB / 467.4 MB, free: 6.203 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.223e-06/0.3364, allocations: 0 / 467.4 MB, free: 6.203 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002064/0.3366, allocations: 89.52 kB / 467.5 MB, free: 6.109 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.851e-05/0.3367, allocations: 106.8 kB / 467.6 MB, free: 5.98 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.3368, allocations: 153.2 kB / 467.7 MB, free: 5.824 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.41e-05/0.3368, allocations: 25.7 kB / 467.7 MB, free: 5.793 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.085e-05/0.3369, allocations: 139.8 kB / 467.9 MB, free: 5.648 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.201e-05/0.3369, allocations: 52.14 kB / 467.9 MB, free: 5.598 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.551e-06/0.3369, allocations: 0 / 467.9 MB, free: 5.598 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.337, allocations: 326.8 kB / 468.3 MB, free: 5.27 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.442e-05/0.3371, allocations: 28.47 kB / 468.3 MB, free: 5.238 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001186/0.3372, allocations: 131.5 kB / 468.4 MB, free: 5.062 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.007e-05/0.3373, allocations: 55.91 kB / 468.5 MB, free: 5.008 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.3373, allocations: 4 kB / 468.5 MB, free: 5.004 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002559/0.3376, allocations: 181.3 kB / 468.6 MB, free: 4.82 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/0.3376, allocations: 4 kB / 468.6 MB, free: 4.816 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.3376, allocations: 12.81 kB / 468.7 MB, free: 4.805 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.3376, allocations: 10.12 kB / 468.7 MB, free: 4.797 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001526/0.3378, allocations: 47.91 kB / 468.7 MB, free: 4.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.3378, allocations: 8 kB / 468.7 MB, free: 4.742 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.454e-05/0.3379, allocations: 16.16 kB / 468.7 MB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.3379, allocations: 20 kB / 468.8 MB, free: 4.707 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 6.566e-05/0.338, allocations: 108.9 kB / 468.9 MB, free: 4.594 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.052e-05/0.3381, allocations: 15.81 kB / 468.9 MB, free: 4.578 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.101e-05/0.3381, allocations: 20.11 kB / 468.9 MB, free: 4.555 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.3381, allocations: 0 / 468.9 MB, free: 4.555 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3381, allocations: 4.562 kB / 468.9 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.3381, allocations: 0 / 468.9 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003489/0.3385, allocations: 210 kB / 469.1 MB, free: 4.309 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3385, allocations: 0 / 469.1 MB, free: 4.309 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001591/0.3387, allocations: 35.92 kB / 469.1 MB, free: 4.273 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/0.3387, allocations: 0 / 469.1 MB, free: 4.273 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.3387, allocations: 4.844 kB / 469.2 MB, free: 4.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3387, allocations: 0 / 469.2 MB, free: 4.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.3387, allocations: 0.5 kB / 469.2 MB, free: 4.27 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002621/0.339, allocations: 396.2 kB / 469.5 MB, free: 3.855 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003752/0.3393, allocations: 0.7756 MB / 470.3 MB, free: 3.047 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.257e-05/0.3394, allocations: 96.84 kB / 470.4 MB, free: 2.934 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.498e-05/0.3394, allocations: 8 kB / 470.4 MB, free: 2.926 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001434/0.3396, allocations: 0 / 470.4 MB, free: 2.926 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.728e-05/0.3396, allocations: 8 kB / 470.4 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.196e-06/0.3396, allocations: 13.23 kB / 470.4 MB, free: 2.906 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.565e-05/0.3397, allocations: 115.3 kB / 470.6 MB, free: 2.793 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008874/0.3406, allocations: 36.23 kB / 470.6 MB, free: 2.758 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (mass1.s,mass1.v,mass2.s,mass2.v,mass3.s,mass3.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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.0001036/0.3407, allocations: 103.5 kB / 470.7 MB, free: 2.648 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001511/0.3409, allocations: 99.8 kB / 470.8 MB, free: 2.551 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.3409, allocations: 0 / 470.8 MB, free: 2.551 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.947e-05/0.3409, allocations: 35.94 kB / 470.8 MB, free: 2.516 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002943/0.3412, allocations: 23.56 kB / 470.8 MB, free: 2.496 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007524/0.342, allocations: 0.5328 MB / 471.4 MB, free: 1.941 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002975/0.3423, allocations: 0.7579 MB / 472.1 MB, free: 1.156 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3423, allocations: 0 / 472.1 MB, free: 1.156 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.SignConvention.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.SignConvention.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.SignConvention.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.SignConvention.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.SignConvention_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_SignConvention_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_SignConvention.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.SignConvention.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.SignConvention_res.mat does not exist to compare? outputFormat=mat