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.002288/0.002287, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.986/1.986, allocations: 205.4 MB / 222.5 MB, free: 9.133 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.001393/0.001393, allocations: 96.36 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004013/0.0004014, allocations: 11.98 kB / 327.1 MB, free: 132 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3318, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1296/0.4614, allocations: 77.18 MB / 451.8 MB, free: 3.578 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002685/0.4617, allocations: 75.95 kB / 451.9 MB, free: 3.504 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01654/0.4783, allocations: 3.794 MB / 455.7 MB, free: 15.7 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.4783, allocations: 0 / 455.7 MB, free: 15.7 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.112e-05/0.4784, allocations: 8 kB / 455.7 MB, free: 15.7 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.0009954/0.4794, allocations: 498.9 kB / 456.2 MB, free: 15.16 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/0.4794, allocations: 12.03 kB / 456.2 MB, free: 15.15 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.162e-05/0.4795, allocations: 54.53 kB / 456.2 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.278e-05/0.4796, allocations: 31.62 kB / 456.3 MB, free: 15.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003345/0.48, allocations: 235.3 kB / 456.5 MB, free: 14.78 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.484e-05/0.48, allocations: 16.44 kB / 456.5 MB, free: 14.76 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.63e-05/0.4801, allocations: 20 kB / 456.5 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006273/0.4807, allocations: 213.4 kB / 456.7 MB, free: 14.52 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.261e-05/0.4808, allocations: 4 kB / 456.7 MB, free: 14.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.89e-05/0.4808, allocations: 4 kB / 456.7 MB, free: 14.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.767e-05/0.4808, allocations: 8 kB / 456.8 MB, free: 14.51 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000555/0.4814, allocations: 156.4 kB / 456.9 MB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001837/0.4832, allocations: 0.8006 MB / 457.7 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006658/0.4839, allocations: 209 kB / 457.9 MB, free: 13.27 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.332e-05/0.484, allocations: 4 kB / 457.9 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.451e-05/0.4841, allocations: 34.56 kB / 458 MB, free: 13.22 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 2.846e-06/0.4841, allocations: 8.438 kB / 458 MB, free: 13.21 MB / 346.7 MB Notification: Performance of matching and sorting (n=26): time 0.002519/0.4866, allocations: 0.8692 MB / 458.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.987e-05/0.4867, allocations: 88.89 kB / 458.9 MB, free: 12.14 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/0.4869, allocations: 169.2 kB / 459.1 MB, free: 11.97 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.084e-05/0.487, allocations: 33.64 kB / 459.1 MB, free: 11.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.4872, allocations: 198.8 kB / 459.3 MB, free: 11.74 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.4873, allocations: 90.66 kB / 459.4 MB, free: 11.65 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-05/0.4873, allocations: 8 kB / 459.4 MB, free: 11.64 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.4875, allocations: 318.8 kB / 459.7 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002623/0.4877, allocations: 71.95 kB / 459.8 MB, free: 11.25 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003066/0.4881, allocations: 112.2 kB / 459.9 MB, free: 11.12 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003129/0.4884, allocations: 86.05 kB / 460 MB, free: 11.04 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.4884, allocations: 0 / 460 MB, free: 11.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007482/0.4892, allocations: 245.3 kB / 460.2 MB, free: 10.8 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.4892, allocations: 4 kB / 460.2 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.4892, allocations: 0 / 460.2 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.477e-05/0.4893, allocations: 7.953 kB / 460.2 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005052/0.4898, allocations: 59.91 kB / 460.3 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.4898, allocations: 4 kB / 460.3 MB, free: 10.72 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002266/0.49, allocations: 27.92 kB / 460.3 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.986e-05/0.4901, allocations: 12 kB / 460.3 MB, free: 10.68 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 () * 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.0002044/0.4903, allocations: 133.8 kB / 460.5 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.299e-05/0.4904, allocations: 19.81 kB / 460.5 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.84e-05/0.4905, allocations: 25.88 kB / 460.5 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.4905, allocations: 3.984 kB / 460.5 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.4905, allocations: 7.953 kB / 460.5 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.4905, allocations: 0 / 460.5 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001314/0.4919, allocations: 0.5789 MB / 461.1 MB, free: 9.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.4919, allocations: 7.953 kB / 461.1 MB, free: 9.832 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005497/0.4925, allocations: 64 kB / 461.2 MB, free: 9.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.16e-05/0.4925, allocations: 4 kB / 461.2 MB, free: 9.766 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.632e-05/0.4925, allocations: 7.984 kB / 461.2 MB, free: 9.758 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.02e-06/0.4925, allocations: 0 / 461.2 MB, free: 9.758 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/0.4926, allocations: 4 kB / 461.2 MB, free: 9.754 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001134/0.4937, allocations: 0.5495 MB / 461.7 MB, free: 9.156 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.355e-05/0.4938, allocations: 92.83 kB / 461.8 MB, free: 9.047 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.879e-05/0.4939, allocations: 12 kB / 461.8 MB, free: 9.035 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000262/0.4941, allocations: 8 kB / 461.8 MB, free: 9.027 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.575e-05/0.4942, allocations: 31.84 kB / 461.9 MB, free: 8.996 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.551e-05/0.4943, allocations: 8 kB / 461.9 MB, free: 8.988 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001582/0.4944, allocations: 136.2 kB / 462 MB, free: 8.855 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4945, allocations: 4 kB / 462 MB, free: 8.852 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005015/0.495, allocations: 56 kB / 462.1 MB, free: 8.797 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 () * 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.001597/0.4966, allocations: 1.369 MB / 463.4 MB, free: 7.379 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006757/0.4973, allocations: 182.6 kB / 463.6 MB, free: 7.203 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.4973, allocations: 0 / 463.6 MB, free: 7.203 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003224/0.4976, allocations: 104.2 kB / 463.7 MB, free: 7.102 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005405/0.4982, allocations: 34.53 kB / 463.8 MB, free: 7.07 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004076/0.5023, allocations: 2.209 MB / 466 MB, free: 4.773 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004108/0.5027, allocations: 0.752 MB / 466.7 MB, free: 3.996 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001975/0.503, allocations: 71.41 kB / 466.8 MB, free: 3.926 MB / 346.7 MB Notification: Performance of SimCode: time 1.203e-06/0.503, allocations: 0 / 466.8 MB, free: 3.926 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.465/2.968, allocations: 3.524 MB / 470.3 MB, free: 416 kB / 346.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