Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.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.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 181.4 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008839/0.0008838, allocations: 90.2 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004364/0.0004367, allocations: 12 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2726, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1046/0.3772, allocations: 78.24 MB / 479.8 MB, free: 2.246 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003439/0.3776, allocations: 67.97 kB / 479.9 MB, free: 2.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01092/0.3885, allocations: 3.928 MB / 483.8 MB, free: 14.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.3886, allocations: 0 / 483.8 MB, free: 14.25 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.365e-05/0.3886, allocations: 4 kB / 483.8 MB, free: 14.24 MB / 362.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.0007008/0.3893, allocations: 0.4988 MB / 484.3 MB, free: 13.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.3894, allocations: 8.031 kB / 484.3 MB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.732e-05/0.3894, allocations: 58.55 kB / 484.4 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.732e-05/0.3895, allocations: 23.72 kB / 484.4 MB, free: 13.6 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002544/0.3898, allocations: 221.4 kB / 484.6 MB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.771e-05/0.3898, allocations: 12.44 kB / 484.6 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.014e-05/0.3898, allocations: 24 kB / 484.7 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003952/0.3902, allocations: 225.2 kB / 484.9 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.3903, allocations: 3.938 kB / 484.9 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.225e-05/0.3903, allocations: 12 kB / 484.9 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.3903, allocations: 4 kB / 484.9 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003176/0.3906, allocations: 160.5 kB / 485 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001163/0.3918, allocations: 0.8008 MB / 485.8 MB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003983/0.3922, allocations: 213 kB / 486.1 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.287e-05/0.3922, allocations: 7.984 kB / 486.1 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.3923, allocations: 34.5 kB / 486.1 MB, free: 11.75 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.362e-06/0.3923, allocations: 0 / 486.1 MB, free: 11.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.001521/0.3938, allocations: 0.8848 MB / 487 MB, free: 10.78 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.411e-05/0.3939, allocations: 81.11 kB / 487.1 MB, free: 10.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001423/0.394, allocations: 157.5 kB / 487.2 MB, free: 10.52 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.394, allocations: 29.7 kB / 487.2 MB, free: 10.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.463e-05/0.3941, allocations: 136.4 kB / 487.4 MB, free: 10.35 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.35e-05/0.3942, allocations: 98.73 kB / 487.5 MB, free: 10.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.109e-05/0.3942, allocations: 8 kB / 487.5 MB, free: 10.24 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.3944, allocations: 334.8 kB / 487.8 MB, free: 9.906 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.3945, allocations: 67.97 kB / 487.9 MB, free: 9.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.3947, allocations: 108.8 kB / 488 MB, free: 9.719 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001662/0.3949, allocations: 86.84 kB / 488.1 MB, free: 9.637 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.3949, allocations: 0 / 488.1 MB, free: 9.637 MB / 362.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004216/0.3953, allocations: 253.5 kB / 488.3 MB, free: 9.383 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.3953, allocations: 4 kB / 488.3 MB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.3953, allocations: 0 / 488.3 MB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.3954, allocations: 4 kB / 488.3 MB, free: 9.375 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002522/0.3956, allocations: 59.91 kB / 488.4 MB, free: 9.316 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/0.3956, allocations: 4.078 kB / 488.4 MB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.3958, allocations: 20.03 kB / 488.4 MB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.142e-05/0.3958, allocations: 15.97 kB / 488.4 MB, free: 9.277 MB / 362.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 () * Number of clocked 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 0.0001447/0.3959, allocations: 137.8 kB / 488.6 MB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.06e-05/0.396, allocations: 23.72 kB / 488.6 MB, free: 9.109 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.835e-05/0.3961, allocations: 25.88 kB / 488.6 MB, free: 9.086 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.3961, allocations: 3.938 kB / 488.6 MB, free: 9.082 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.3961, allocations: 4 kB / 488.6 MB, free: 9.078 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.3961, allocations: 3.984 kB / 488.6 MB, free: 9.074 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007921/0.3969, allocations: 0.5826 MB / 489.2 MB, free: 8.426 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.3969, allocations: 7.984 kB / 489.2 MB, free: 8.418 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002807/0.3972, allocations: 51.97 kB / 489.3 MB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.3972, allocations: 8.094 kB / 489.3 MB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.834e-05/0.3973, allocations: 8 kB / 489.3 MB, free: 8.352 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.3973, allocations: 3.938 kB / 489.3 MB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.3973, allocations: 7.953 kB / 489.3 MB, free: 8.34 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000653/0.3979, allocations: 0.5388 MB / 489.8 MB, free: 7.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.74e-05/0.398, allocations: 100.9 kB / 489.9 MB, free: 7.633 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.059e-05/0.398, allocations: 8 kB / 489.9 MB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000165/0.3982, allocations: 8 kB / 489.9 MB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.53e-05/0.3983, allocations: 27.84 kB / 490 MB, free: 7.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.3983, allocations: 4 kB / 490 MB, free: 7.586 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.386e-05/0.3984, allocations: 137.5 kB / 490.1 MB, free: 7.453 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3984, allocations: 0 / 490.1 MB, free: 7.453 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003269/0.3987, allocations: 59.95 kB / 490.2 MB, free: 7.395 MB / 362.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 () * Number of clocked 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.001046/0.3998, allocations: 1.357 MB / 491.5 MB, free: 5.984 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003955/0.4002, allocations: 191.8 kB / 491.7 MB, free: 5.797 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4002, allocations: 0 / 491.7 MB, free: 5.797 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000181/0.4004, allocations: 104.2 kB / 491.8 MB, free: 5.695 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003622/0.4008, allocations: 27.09 kB / 491.8 MB, free: 5.672 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00248/0.4033, allocations: 2.195 MB / 494 MB, free: 3.395 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003274/0.4036, allocations: 0.752 MB / 494.8 MB, free: 2.617 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.631e-05/0.4037, allocations: 25.92 kB / 494.8 MB, free: 2.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/0.4039, allocations: 63.42 kB / 494.9 MB, free: 2.527 MB / 362.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4039, allocations: 0 / 494.9 MB, free: 2.527 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01479/0.4187, allocations: 3.864 MB / 498.7 MB, free: 14.81 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/0.4189, allocations: 180 kB / 498.9 MB, free: 14.57 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.778/2.197, allocations: 64 / 498.9 MB, free: 14.57 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat