Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002445/0.002445, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.28/2.28, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001691/0.001691, allocations: 90.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.69e-05/3.701e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1128, allocations: 47.58 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.426/0.5389, allocations: 77.09 MB / 446.3 MB, free: 64 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002583/0.5392, allocations: 62.72 kB / 446.3 MB, free: 32 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01666/0.5559, allocations: 3.794 MB / 450.1 MB, free: 12.83 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.556, allocations: 0 / 450.1 MB, free: 12.83 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.852e-05/0.556, allocations: 8 kB / 450.1 MB, free: 12.82 MB / 330.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.0009159/0.5569, allocations: 482.7 kB / 450.6 MB, free: 12.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.557, allocations: 8.031 kB / 450.6 MB, free: 12.31 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.948e-05/0.5571, allocations: 55.98 kB / 450.7 MB, free: 12.26 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.469e-05/0.5572, allocations: 23.72 kB / 450.7 MB, free: 12.23 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003338/0.5575, allocations: 238.3 kB / 450.9 MB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.5576, allocations: 11.94 kB / 450.9 MB, free: 11.96 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.976e-05/0.5576, allocations: 18.94 kB / 451 MB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005334/0.5582, allocations: 203.8 kB / 451.2 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/0.5582, allocations: 3.984 kB / 451.2 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.974e-05/0.5583, allocations: 6.25 kB / 451.2 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.5583, allocations: 8 kB / 451.2 MB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003808/0.5587, allocations: 126 kB / 451.3 MB, free: 11.71 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001771/0.5604, allocations: 0.8015 MB / 452.1 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005331/0.561, allocations: 186.8 kB / 452.3 MB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000293/0.5613, allocations: 100.4 kB / 452.4 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.704e-05/0.5614, allocations: 4 kB / 452.4 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/0.5614, allocations: 38.19 kB / 452.4 MB, free: 10.69 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.926e-06/0.5614, allocations: 0 / 452.4 MB, free: 10.69 MB / 330.7 MB Notification: Performance of matching and sorting (n=26): time 0.001872/0.5633, allocations: 0.7645 MB / 453.2 MB, free: 9.93 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.313e-05/0.5634, allocations: 88.41 kB / 453.3 MB, free: 9.828 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002226/0.5636, allocations: 158.6 kB / 453.4 MB, free: 9.684 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.204e-05/0.5637, allocations: 33.19 kB / 453.5 MB, free: 9.648 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.5638, allocations: 194.6 kB / 453.6 MB, free: 9.473 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.598e-05/0.5639, allocations: 99.84 kB / 453.7 MB, free: 9.387 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.759e-05/0.564, allocations: 6.938 kB / 453.8 MB, free: 9.383 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.5641, allocations: 320.9 kB / 454.1 MB, free: 9.066 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001678/0.5643, allocations: 58.8 kB / 454.1 MB, free: 9.027 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002121/0.5645, allocations: 100.3 kB / 454.2 MB, free: 8.938 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002042/0.5647, allocations: 61.73 kB / 454.3 MB, free: 8.898 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.5648, allocations: 4 kB / 454.3 MB, free: 8.895 MB / 330.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005221/0.5653, allocations: 217.4 kB / 454.5 MB, free: 8.727 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.5653, allocations: 4 kB / 454.5 MB, free: 8.723 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.5654, allocations: 7.984 kB / 454.5 MB, free: 8.715 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.141e-05/0.5654, allocations: 3.953 kB / 454.5 MB, free: 8.711 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004983/0.5659, allocations: 67.84 kB / 454.6 MB, free: 8.645 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.5659, allocations: 0 / 454.6 MB, free: 8.645 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002193/0.5661, allocations: 15.53 kB / 454.6 MB, free: 8.633 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.713e-05/0.5662, allocations: 15.78 kB / 454.6 MB, free: 8.621 MB / 330.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 0.000115/0.5663, allocations: 116.2 kB / 454.7 MB, free: 8.508 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.411e-05/0.5664, allocations: 23.8 kB / 454.7 MB, free: 8.484 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.805e-05/0.5665, allocations: 24.34 kB / 454.8 MB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.189e-05/0.5665, allocations: 7.953 kB / 454.8 MB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.5665, allocations: 0 / 454.8 MB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.5666, allocations: 3.984 kB / 454.8 MB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001212/0.5678, allocations: 0.5779 MB / 455.4 MB, free: 7.918 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.5678, allocations: 0 / 455.4 MB, free: 7.918 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005327/0.5684, allocations: 59.91 kB / 455.4 MB, free: 7.859 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.117e-05/0.5684, allocations: 4 kB / 455.4 MB, free: 7.855 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.355e-05/0.5684, allocations: 3.75 kB / 455.4 MB, free: 7.855 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.494e-06/0.5684, allocations: 8.094 kB / 455.4 MB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.5684, allocations: 0 / 455.4 MB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008327/0.5693, allocations: 0.4988 MB / 455.9 MB, free: 7.379 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.802e-05/0.5694, allocations: 104.8 kB / 456 MB, free: 7.258 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.709e-05/0.5695, allocations: 7.562 kB / 456 MB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000266/0.5697, allocations: 11.52 kB / 456.1 MB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.489e-05/0.5698, allocations: 15.97 kB / 456.1 MB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.406e-05/0.5699, allocations: 11.16 kB / 456.1 MB, free: 7.223 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000149/0.57, allocations: 133.9 kB / 456.2 MB, free: 7.105 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.57, allocations: 3.938 kB / 456.2 MB, free: 7.102 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004983/0.5705, allocations: 58 kB / 456.3 MB, free: 7.055 MB / 330.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.001316/0.5719, allocations: 1.317 MB / 457.6 MB, free: 5.77 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004901/0.5724, allocations: 158 kB / 457.7 MB, free: 5.656 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5724, allocations: 192 / 457.7 MB, free: 5.656 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000225/0.5726, allocations: 91.48 kB / 457.8 MB, free: 5.586 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005084/0.5732, allocations: 37.75 kB / 457.9 MB, free: 5.562 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001872/0.5751, allocations: 0.6305 MB / 458.5 MB, free: 4.918 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004553/0.5755, allocations: 0.7482 MB / 459.2 MB, free: 4.141 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000178/0.5757, allocations: 75.47 kB / 459.3 MB, free: 4.109 MB / 330.7 MB Notification: Performance of SimCode: time 1.153e-06/0.5757, allocations: 0 / 459.3 MB, free: 4.109 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.431/3.006, allocations: 3.53 MB / 462.8 MB, free: 0.6133 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat