Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.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.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001101/0.001101, allocations: 196 kB / 8.539 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.182/1.182, allocations: 225.5 MB / 234.4 MB, free: 3.41 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008349/0.000835, allocations: 90.92 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09619/0.09705, allocations: 56.9 MB / 343.2 MB, free: 8.652 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08664/0.1837, allocations: 51.47 MB / 394.7 MB, free: 5.133 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2213/0.405, allocations: 78.25 MB / 472.9 MB, free: 13.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001457/0.4052, allocations: 67.58 kB / 473 MB, free: 13.44 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.009741/0.415, allocations: 4.14 MB / 477.2 MB, free: 11 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.415, allocations: 11.14 kB / 477.2 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002338/0.4153, allocations: 50.91 kB / 477.2 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002049/0.4155, allocations: 233.5 kB / 477.4 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.4155, allocations: 7.188 kB / 477.4 MB, free: 10.69 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.437e-05/0.4155, allocations: 12 kB / 477.5 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000227/0.4158, allocations: 115.4 kB / 477.6 MB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002358/0.416, allocations: 180.8 kB / 477.7 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.416, allocations: 0 / 477.7 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.73e-05/0.4161, allocations: 0 / 477.7 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.4161, allocations: 8 kB / 477.8 MB, free: 10.47 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009659/0.417, allocations: 0.7576 MB / 478.5 MB, free: 9.879 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001724/0.4172, allocations: 126.2 kB / 478.6 MB, free: 9.781 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.4174, allocations: 90.47 kB / 478.7 MB, free: 9.715 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.4174, allocations: 4 kB / 478.7 MB, free: 9.711 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.072e-05/0.4175, allocations: 37.55 kB / 478.8 MB, free: 9.672 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 1.352e-06/0.4175, allocations: 4 kB / 478.8 MB, free: 9.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=26): time 0.001033/0.4185, allocations: 0.711 MB / 479.5 MB, free: 8.988 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.427e-05/0.4185, allocations: 81.11 kB / 479.6 MB, free: 8.891 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.396e-05/0.4186, allocations: 136 kB / 479.7 MB, free: 8.77 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.579e-05/0.4187, allocations: 25.7 kB / 479.7 MB, free: 8.738 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.902e-05/0.4187, allocations: 130 kB / 479.8 MB, free: 8.625 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.263e-05/0.4188, allocations: 92.23 kB / 479.9 MB, free: 8.551 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.277e-06/0.4188, allocations: 3.938 kB / 479.9 MB, free: 8.547 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.486e-05/0.4188, allocations: 329.8 kB / 480.3 MB, free: 8.23 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.742e-05/0.4189, allocations: 49 kB / 480.3 MB, free: 8.203 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.625e-05/0.419, allocations: 93.38 kB / 480.4 MB, free: 8.125 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001028/0.4191, allocations: 62.34 kB / 480.5 MB, free: 8.094 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.4192, allocations: 0 / 480.5 MB, free: 8.094 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000279/0.4194, allocations: 196.7 kB / 480.7 MB, free: 7.949 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.4195, allocations: 4 kB / 480.7 MB, free: 7.945 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.4195, allocations: 4 kB / 480.7 MB, free: 7.941 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.4195, allocations: 0 / 480.7 MB, free: 7.941 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002817/0.4198, allocations: 69.81 kB / 480.7 MB, free: 7.887 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.4198, allocations: 10.28 kB / 480.7 MB, free: 7.879 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001155/0.4199, allocations: 19.41 kB / 480.8 MB, free: 7.863 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.741e-05/0.4199, allocations: 8 kB / 480.8 MB, free: 7.855 MB / 346.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 6.09e-05/0.42, allocations: 101 kB / 480.9 MB, free: 7.75 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.07e-05/0.4201, allocations: 26.62 kB / 480.9 MB, free: 7.727 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.274e-05/0.4201, allocations: 24.12 kB / 480.9 MB, free: 7.719 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.4201, allocations: 4 kB / 480.9 MB, free: 7.715 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.4201, allocations: 3.469 kB / 480.9 MB, free: 7.715 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.4202, allocations: 4 kB / 480.9 MB, free: 7.711 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006545/0.4208, allocations: 0.5126 MB / 481.4 MB, free: 7.285 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.4208, allocations: 8.031 kB / 481.4 MB, free: 7.277 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003092/0.4211, allocations: 53 kB / 481.5 MB, free: 7.234 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.638e-06/0.4212, allocations: 4 kB / 481.5 MB, free: 7.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.206e-05/0.4212, allocations: 5.953 kB / 481.5 MB, free: 7.227 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.4212, allocations: 0 / 481.5 MB, free: 7.227 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/0.4212, allocations: 12.45 kB / 481.5 MB, free: 7.215 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004307/0.4216, allocations: 487 kB / 482 MB, free: 6.785 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005262/0.4222, allocations: 0.9323 MB / 482.9 MB, free: 5.926 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.033e-05/0.4222, allocations: 98.12 kB / 483 MB, free: 5.812 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.522e-05/0.4223, allocations: 9 kB / 483 MB, free: 5.809 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001839/0.4225, allocations: 5.734 kB / 483 MB, free: 5.805 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.897e-05/0.4225, allocations: 17.95 kB / 483.1 MB, free: 5.793 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.49e-05/0.4226, allocations: 7.609 kB / 483.1 MB, free: 5.789 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.815e-05/0.4226, allocations: 118.8 kB / 483.2 MB, free: 5.688 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009467/0.4236, allocations: 48.25 kB / 483.2 MB, free: 5.641 MB / 346.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.0001321/0.4237, allocations: 104.6 kB / 483.3 MB, free: 5.535 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002427/0.424, allocations: 148.8 kB / 483.5 MB, free: 5.434 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.424, allocations: 0 / 483.5 MB, free: 5.434 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.4241, allocations: 76 kB / 483.5 MB, free: 5.379 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000362/0.4245, allocations: 34.09 kB / 483.6 MB, free: 5.359 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000955/0.4254, allocations: 0.5275 MB / 484.1 MB, free: 4.887 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002468/0.4257, allocations: 0.7814 MB / 484.9 MB, free: 4.082 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4257, allocations: 0 / 484.9 MB, free: 4.082 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat