Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.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.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator",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.001032/0.001032, allocations: 183.8 kB / 8.477 MB, free: 1.867 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.146/1.146, allocations: 205.2 MB / 214.1 MB, free: 5.156 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.0008641/0.0008641, allocations: 82.84 kB / 262.1 MB, free: 5.211 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1548/0.1557, allocations: 52.97 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06806/0.2238, allocations: 47.58 MB / 362.6 MB, free: 9.883 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2024/0.4262, allocations: 76.35 MB / 439 MB, free: 10.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001335/0.4263, allocations: 66.61 kB / 439 MB, free: 10.8 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.009625/0.436, allocations: 3.947 MB / 443 MB, free: 10.14 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.053e-05/0.436, allocations: 8.312 kB / 443 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.499e-05/0.4361, allocations: 26.91 kB / 443 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001954/0.4363, allocations: 217.4 kB / 443.2 MB, free: 9.914 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.222e-05/0.4363, allocations: 7.719 kB / 443.2 MB, free: 9.914 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.512e-05/0.4363, allocations: 12.05 kB / 443.3 MB, free: 9.914 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002329/0.4366, allocations: 114.3 kB / 443.4 MB, free: 9.914 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002574/0.4369, allocations: 181.9 kB / 443.5 MB, free: 9.852 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.4369, allocations: 0 / 443.5 MB, free: 9.852 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.807e-05/0.4369, allocations: 3.844 kB / 443.6 MB, free: 9.852 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.4369, allocations: 6.438 kB / 443.6 MB, free: 9.852 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.4379, allocations: 0.7495 MB / 444.3 MB, free: 9.426 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001731/0.4381, allocations: 130.9 kB / 444.4 MB, free: 9.387 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001594/0.4383, allocations: 97.72 kB / 444.5 MB, free: 9.363 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.4383, allocations: 0 / 444.5 MB, free: 9.363 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.691e-05/0.4384, allocations: 39.05 kB / 444.6 MB, free: 9.324 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 1.152e-06/0.4384, allocations: 0 / 444.6 MB, free: 9.324 MB / 314.7 MB Notification: Performance of matching and sorting (n=26): time 0.0009386/0.4393, allocations: 0.7075 MB / 445.3 MB, free: 8.828 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.798e-05/0.4393, allocations: 80.95 kB / 445.4 MB, free: 8.734 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.087e-05/0.4394, allocations: 134.7 kB / 445.5 MB, free: 8.637 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.766e-05/0.4395, allocations: 25.7 kB / 445.5 MB, free: 8.605 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.896e-05/0.4395, allocations: 135.8 kB / 445.6 MB, free: 8.492 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.61e-05/0.4396, allocations: 96.06 kB / 445.7 MB, free: 8.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.608e-06/0.4396, allocations: 0 / 445.7 MB, free: 8.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.546e-05/0.4396, allocations: 327.9 kB / 446.1 MB, free: 8.117 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.338e-05/0.4397, allocations: 53.84 kB / 446.1 MB, free: 8.113 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.324e-05/0.4398, allocations: 88.03 kB / 446.2 MB, free: 8.074 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001312/0.4399, allocations: 64.23 kB / 446.3 MB, free: 8.066 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.44, allocations: 4.516 kB / 446.3 MB, free: 8.066 MB / 314.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002952/0.4403, allocations: 199.2 kB / 446.5 MB, free: 8.012 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.4403, allocations: 4.609 kB / 446.5 MB, free: 8.012 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.4403, allocations: 7.844 kB / 446.5 MB, free: 8.008 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.4403, allocations: 0 / 446.5 MB, free: 8.008 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002792/0.4406, allocations: 58.91 kB / 446.5 MB, free: 8.008 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.988e-06/0.4406, allocations: 16.58 kB / 446.5 MB, free: 7.996 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/0.4407, allocations: 17.98 kB / 446.6 MB, free: 7.988 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.4408, allocations: 7.219 kB / 446.6 MB, free: 7.988 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * 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.423e-05/0.4408, allocations: 109.7 kB / 446.7 MB, free: 7.879 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.049e-05/0.4409, allocations: 15.69 kB / 446.7 MB, free: 7.871 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.266e-05/0.4409, allocations: 32.75 kB / 446.7 MB, free: 7.863 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.441, allocations: 3.906 kB / 446.7 MB, free: 7.863 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.441, allocations: 4.609 kB / 446.7 MB, free: 7.859 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.441, allocations: 1.406 kB / 446.7 MB, free: 7.859 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006209/0.4416, allocations: 0.5175 MB / 447.2 MB, free: 7.555 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.4416, allocations: 4.094 kB / 447.3 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002879/0.4419, allocations: 59.23 kB / 447.3 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.4419, allocations: 0 / 447.3 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.4419, allocations: 4.781 kB / 447.3 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.442, allocations: 3.938 kB / 447.3 MB, free: 7.547 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.442, allocations: 8.781 kB / 447.3 MB, free: 7.543 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004023/0.4424, allocations: 485.8 kB / 447.8 MB, free: 7.23 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005074/0.4429, allocations: 0.937 MB / 448.7 MB, free: 6.535 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.49e-05/0.4429, allocations: 90.3 kB / 448.8 MB, free: 6.434 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.723e-05/0.443, allocations: 3.812 kB / 448.8 MB, free: 6.434 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001861/0.4432, allocations: 9.281 kB / 448.8 MB, free: 6.434 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.576e-05/0.4432, allocations: 17.38 kB / 448.9 MB, free: 6.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.474e-05/0.4433, allocations: 8.234 kB / 448.9 MB, free: 6.43 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.458e-05/0.4433, allocations: 117.5 kB / 449 MB, free: 6.352 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009373/0.4443, allocations: 42.5 kB / 449 MB, free: 6.352 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (mass1.s,mass1.v,damper1.s_rel,damper1.v_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * 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.0001102/0.4444, allocations: 101 kB / 449.1 MB, free: 6.258 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002403/0.4446, allocations: 145.7 kB / 449.3 MB, free: 6.246 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.4447, allocations: 0 / 449.3 MB, free: 6.246 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001048/0.4448, allocations: 80.67 kB / 449.3 MB, free: 6.238 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003529/0.4451, allocations: 27.45 kB / 449.4 MB, free: 6.234 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009274/0.4461, allocations: 0.5228 MB / 449.9 MB, free: 5.902 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003034/0.4464, allocations: 0.7761 MB / 450.7 MB, free: 5.195 MB / 314.7 MB Notification: Performance of SimCode: time 2.8e-07/0.4464, allocations: 7.875 kB / 450.7 MB, free: 5.188 MB / 314.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat