Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.InitialConditions.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.InitialConditions,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_InitialConditions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.InitialConditions,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_InitialConditions",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.001527/0.001527, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.025/2.025, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001135/0.001134, allocations: 93.05 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.031e-05/2.032e-05, allocations: 0 / 314.9 MB, free: 9.078 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.3437, allocations: 47.57 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1291/0.4729, allocations: 75.31 MB / 437.7 MB, free: 10.93 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002709/0.4732, allocations: 63.97 kB / 437.8 MB, free: 10.87 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01978/0.493, allocations: 4.512 MB / 442.3 MB, free: 6.383 MB / 331.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.4931, allocations: 0 / 442.3 MB, free: 6.383 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.368e-05/0.4931, allocations: 4 kB / 442.3 MB, free: 6.379 MB / 331.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001026/0.4942, allocations: 0.5053 MB / 442.8 MB, free: 5.832 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.4942, allocations: 8.031 kB / 442.8 MB, free: 5.824 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.015e-05/0.4943, allocations: 27.72 kB / 442.9 MB, free: 5.797 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003644/0.4947, allocations: 236 kB / 443.1 MB, free: 5.527 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.4947, allocations: 11.95 kB / 443.1 MB, free: 5.516 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.631e-05/0.4948, allocations: 16 kB / 443.1 MB, free: 5.5 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004898/0.4953, allocations: 153.1 kB / 443.3 MB, free: 5.348 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005284/0.4959, allocations: 213.5 kB / 443.5 MB, free: 5.125 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.872e-05/0.4959, allocations: 3.984 kB / 443.5 MB, free: 5.121 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.124e-05/0.4959, allocations: 4 kB / 443.5 MB, free: 5.117 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.496, allocations: 4 kB / 443.5 MB, free: 5.113 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001495/0.4975, allocations: 0.6996 MB / 444.2 MB, free: 4.371 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006191/0.4981, allocations: 241.9 kB / 444.4 MB, free: 4.117 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002769/0.4984, allocations: 112.4 kB / 444.5 MB, free: 4.004 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.543e-05/0.4985, allocations: 7.984 kB / 444.5 MB, free: 3.996 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.311e-05/0.4985, allocations: 46.5 kB / 444.6 MB, free: 3.941 MB / 331.1 MB Notification: Performance of pre-optimization done (n=36): time 3.407e-06/0.4985, allocations: 0 / 444.6 MB, free: 3.941 MB / 331.1 MB Notification: Performance of matching and sorting (n=48): time 0.003517/0.5021, allocations: 1.489 MB / 446.1 MB, free: 2.285 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.5022, allocations: 81.11 kB / 446.1 MB, free: 2.188 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002119/0.5024, allocations: 137.9 kB / 446.3 MB, free: 2.043 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 3.269e-05/0.5024, allocations: 25.7 kB / 446.3 MB, free: 2.012 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.5026, allocations: 203.4 kB / 446.5 MB, free: 1.809 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001874/0.5028, allocations: 169.5 kB / 446.7 MB, free: 1.641 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.824e-05/0.5028, allocations: 4 kB / 446.7 MB, free: 1.637 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.503, allocations: 330.8 kB / 447 MB, free: 1.305 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002579/0.5033, allocations: 89.12 kB / 447.1 MB, free: 1.219 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003109/0.5036, allocations: 136.3 kB / 447.2 MB, free: 1.07 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003188/0.5039, allocations: 115.5 kB / 447.3 MB, free: 0.9609 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.319e-06/0.5039, allocations: 2.25 kB / 447.3 MB, free: 0.9609 MB / 331.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007813/0.5047, allocations: 318.3 kB / 447.6 MB, free: 0.6445 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.5048, allocations: 4 kB / 447.6 MB, free: 0.6406 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.5048, allocations: 4 kB / 447.7 MB, free: 0.6367 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.365e-05/0.5048, allocations: 0 / 447.7 MB, free: 0.6367 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007708/0.5056, allocations: 103.9 kB / 447.8 MB, free: 0.5352 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.5056, allocations: 0 / 447.8 MB, free: 0.5352 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002268/0.5059, allocations: 4 kB / 447.8 MB, free: 0.5312 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.391e-05/0.5059, allocations: 12 kB / 447.8 MB, free: 0.5195 MB / 331.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 58 * 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.0001513/0.5061, allocations: 122.3 kB / 447.9 MB, free: 404 kB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007306/0.5068, allocations: 286.5 kB / 448.2 MB, free: 112 kB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.888e-05/0.5069, allocations: 23.72 kB / 448.2 MB, free: 88 kB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001193/0.507, allocations: 33.95 kB / 448.2 MB, free: 56 kB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.5071, allocations: 4 kB / 448.2 MB, free: 52 kB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.5071, allocations: 4 kB / 448.2 MB, free: 48 kB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.5071, allocations: 0 / 448.2 MB, free: 48 kB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001902/0.509, allocations: 0.8584 MB / 449.1 MB, free: 15.14 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.837e-06/0.5091, allocations: 4 kB / 449.1 MB, free: 15.13 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008636/0.5099, allocations: 95.89 kB / 449.2 MB, free: 15.04 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.02e-05/0.51, allocations: 4.062 kB / 449.2 MB, free: 15.04 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.47e-05/0.51, allocations: 7.953 kB / 449.2 MB, free: 15.03 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.526e-06/0.51, allocations: 4.875 kB / 449.2 MB, free: 15.02 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.51, allocations: 0 / 449.2 MB, free: 15.02 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001148/0.5112, allocations: 0.6289 MB / 449.8 MB, free: 14.35 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001107/0.5113, allocations: 97.39 kB / 449.9 MB, free: 14.24 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.897e-05/0.5114, allocations: 0 / 449.9 MB, free: 14.24 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002706/0.5117, allocations: 4 kB / 449.9 MB, free: 14.23 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.726e-05/0.5118, allocations: 23.97 kB / 450 MB, free: 14.21 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.44e-05/0.5118, allocations: 19.86 kB / 450 MB, free: 14.2 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0001345/0.5119, allocations: 120.3 kB / 450.1 MB, free: 14.08 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.8e-07/0.512, allocations: 6.531 kB / 450.1 MB, free: 14.07 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0005455/0.5125, allocations: 64 kB / 450.2 MB, free: 14.01 MB / 347.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (sd2.s_rel,sd2.v_rel,m4.s,m4.v,m1.s,m1.v,sd1.s_rel,sd1.v_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 48 * 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.001572/0.5141, allocations: 1.38 MB / 451.5 MB, free: 12.59 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0007079/0.5148, allocations: 266.8 kB / 451.8 MB, free: 12.33 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.5148, allocations: 0 / 451.8 MB, free: 12.33 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000322/0.5152, allocations: 143.7 kB / 451.9 MB, free: 12.19 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006957/0.5159, allocations: 44.83 kB / 452 MB, free: 12.15 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002521/0.5184, allocations: 0.963 MB / 452.9 MB, free: 11.14 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004585/0.5189, allocations: 0.7803 MB / 453.7 MB, free: 10.33 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002454/0.5192, allocations: 99.41 kB / 453.8 MB, free: 10.23 MB / 347.1 MB Notification: Performance of SimCode: time 1.583e-06/0.5192, allocations: 0 / 453.8 MB, free: 10.23 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.587/3.106, allocations: 4.789 MB / 458.6 MB, free: 5.469 MB / 347.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.InitialConditions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.InitialConditions_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_InitialConditions_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_InitialConditions.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.InitialConditions_res.mat does not exist to compare? outputFormat=mat