Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors",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 trunk/package.mo): time 0.001085/0.001085, allocations: 198.6 kB / 8.539 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 225.5 MB / 234.4 MB, free: 3.375 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008763/0.0008763, allocations: 95.69 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1046/0.1055, allocations: 56.9 MB / 343.2 MB, free: 8.629 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08868/0.1942, allocations: 51.47 MB / 394.7 MB, free: 5.102 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2376/0.4319, allocations: 78.24 MB / 472.9 MB, free: 13.42 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002066/0.4321, allocations: 71.06 kB / 473 MB, free: 13.39 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.006843/0.439, allocations: 2.859 MB / 475.9 MB, free: 11.67 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.439, allocations: 11.33 kB / 475.9 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001452/0.4392, allocations: 23.81 kB / 475.9 MB, free: 11.64 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001648/0.4394, allocations: 200.8 kB / 476.1 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.4394, allocations: 7.281 kB / 476.1 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.139e-05/0.4394, allocations: 8 kB / 476.1 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001537/0.4396, allocations: 76.56 kB / 476.2 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001894/0.4398, allocations: 112.4 kB / 476.3 MB, free: 11.28 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.4398, allocations: 0 / 476.3 MB, free: 11.28 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.4398, allocations: 3.906 kB / 476.3 MB, free: 11.28 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.962e-06/0.4398, allocations: 4 kB / 476.3 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000627/0.4405, allocations: 0.4934 MB / 476.8 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.065e-05/0.4406, allocations: 52.36 kB / 476.9 MB, free: 10.83 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.71e-05/0.4406, allocations: 24.36 kB / 476.9 MB, free: 10.81 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.389e-05/0.4406, allocations: 4 kB / 476.9 MB, free: 10.81 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.248e-05/0.4406, allocations: 37.89 kB / 476.9 MB, free: 10.77 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.223e-06/0.4406, allocations: 192 / 476.9 MB, free: 10.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006077/0.4413, allocations: 0.5235 MB / 477.4 MB, free: 10.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.767e-05/0.4413, allocations: 51.41 kB / 477.5 MB, free: 10.15 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.351e-05/0.4414, allocations: 123.4 kB / 477.6 MB, free: 10.04 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.456e-06/0.4414, allocations: 25.7 kB / 477.6 MB, free: 10.01 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.684e-05/0.4414, allocations: 134.3 kB / 477.8 MB, free: 9.887 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.687e-05/0.4414, allocations: 38.62 kB / 477.8 MB, free: 9.855 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.01e-06/0.4414, allocations: 0 / 477.8 MB, free: 9.855 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.835e-05/0.4415, allocations: 321.6 kB / 478.1 MB, free: 9.539 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.007e-05/0.4415, allocations: 27.62 kB / 478.1 MB, free: 9.523 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.423e-05/0.4416, allocations: 73.55 kB / 478.2 MB, free: 9.441 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.327e-05/0.4417, allocations: 32.58 kB / 478.3 MB, free: 9.426 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/0.4417, allocations: 4 kB / 478.3 MB, free: 9.422 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001581/0.4418, allocations: 134.5 kB / 478.4 MB, free: 9.312 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.889e-06/0.4418, allocations: 4 kB / 478.4 MB, free: 9.309 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.4419, allocations: 4 kB / 478.4 MB, free: 9.305 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.044e-05/0.4419, allocations: 0 / 478.4 MB, free: 9.305 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001526/0.442, allocations: 39.12 kB / 478.4 MB, free: 9.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.442, allocations: 8.688 kB / 478.4 MB, free: 9.266 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.205e-05/0.4421, allocations: 8.188 kB / 478.4 MB, free: 9.258 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.4421, allocations: 4.047 kB / 478.5 MB, free: 9.254 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.325e-05/0.4422, allocations: 109.3 kB / 478.6 MB, free: 9.145 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.187e-05/0.4422, allocations: 23.67 kB / 478.6 MB, free: 9.125 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.321e-05/0.4423, allocations: 11.3 kB / 478.6 MB, free: 9.125 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.4423, allocations: 2.25 kB / 478.6 MB, free: 9.125 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.4423, allocations: 0 / 478.6 MB, free: 9.125 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.4423, allocations: 4 kB / 478.6 MB, free: 9.121 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003232/0.4426, allocations: 392.2 kB / 479 MB, free: 8.762 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.4426, allocations: 0 / 479 MB, free: 8.762 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.4428, allocations: 27.14 kB / 479 MB, free: 8.738 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.4428, allocations: 0 / 479 MB, free: 8.738 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.518e-06/0.4428, allocations: 0 / 479 MB, free: 8.738 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.4428, allocations: 7.469 kB / 479 MB, free: 8.734 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.4428, allocations: 4.062 kB / 479 MB, free: 8.73 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001862/0.443, allocations: 245.7 kB / 479.3 MB, free: 8.492 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002367/0.4432, allocations: 0.6484 MB / 479.9 MB, free: 7.855 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.422e-05/0.4433, allocations: 88.39 kB / 480 MB, free: 7.754 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.05e-05/0.4433, allocations: 0 / 480 MB, free: 7.754 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.292e-05/0.4434, allocations: 10.22 kB / 480 MB, free: 7.746 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.63e-05/0.4434, allocations: 17.3 kB / 480 MB, free: 7.734 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.4435, allocations: 0 / 480 MB, free: 7.734 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.523e-05/0.4435, allocations: 99.7 kB / 480.1 MB, free: 7.648 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008294/0.4443, allocations: 27.94 kB / 480.1 MB, free: 7.621 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mass.s,mass.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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 8.513e-05/0.4444, allocations: 95.25 kB / 480.2 MB, free: 7.52 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001241/0.4446, allocations: 79.67 kB / 480.3 MB, free: 7.465 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.4446, allocations: 8.125 kB / 480.3 MB, free: 7.457 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.188e-05/0.4446, allocations: 29.75 kB / 480.4 MB, free: 7.434 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002001/0.4448, allocations: 13.16 kB / 480.4 MB, free: 7.43 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00048/0.4453, allocations: 281.8 kB / 480.6 MB, free: 7.168 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001626/0.4455, allocations: 0.731 MB / 481.4 MB, free: 6.43 MB / 346.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4455, allocations: 0 / 481.4 MB, free: 6.43 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors_res.mat does not exist to compare? outputFormat=mat