Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.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.InitialConditions,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_InitialConditions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.InitialConditions,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_InitialConditions",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.001878/0.001878, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.564/1.564, allocations: 221.5 MB / 230.3 MB, free: 7.555 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000936/0.000936, allocations: 82.31 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.047e-05/2.051e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1145, allocations: 50.42 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3921/0.5066, allocations: 76.51 MB / 464.1 MB, free: 2.199 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002752/0.507, allocations: 67.95 kB / 464.1 MB, free: 2.133 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01249/0.5195, allocations: 4.668 MB / 468.8 MB, free: 13.46 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.5196, allocations: 0 / 468.8 MB, free: 13.46 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.184e-05/0.5196, allocations: 8 kB / 468.8 MB, free: 13.45 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0007887/0.5204, allocations: 0.4992 MB / 469.3 MB, free: 12.91 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.5204, allocations: 8.031 kB / 469.3 MB, free: 12.9 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.787e-05/0.5205, allocations: 27.72 kB / 469.3 MB, free: 12.87 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000287/0.5208, allocations: 247.1 kB / 469.6 MB, free: 12.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.5209, allocations: 8 kB / 469.6 MB, free: 12.58 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.749e-05/0.5209, allocations: 16 kB / 469.6 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003089/0.5212, allocations: 157 kB / 469.8 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003459/0.5216, allocations: 214.2 kB / 470 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.5216, allocations: 4 kB / 470 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.089e-05/0.5216, allocations: 0 / 470 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.5217, allocations: 8 kB / 470 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009727/0.5226, allocations: 0.6879 MB / 470.7 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003356/0.523, allocations: 250.6 kB / 470.9 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000176/0.5232, allocations: 118.3 kB / 471 MB, free: 11.06 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.475e-05/0.5232, allocations: 7.906 kB / 471 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.417e-05/0.5232, allocations: 30.56 kB / 471.1 MB, free: 11.02 MB / 346.7 MB Notification: Performance of pre-optimization done (n=36): time 1.603e-06/0.5232, allocations: 0 / 471.1 MB, free: 11.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=48): time 0.002177/0.5254, allocations: 1.481 MB / 472.5 MB, free: 9.359 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.255e-05/0.5255, allocations: 89.11 kB / 472.6 MB, free: 9.254 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001366/0.5256, allocations: 142.3 kB / 472.8 MB, free: 9.105 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.5257, allocations: 29.7 kB / 472.8 MB, free: 9.07 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.323e-05/0.5258, allocations: 148.9 kB / 472.9 MB, free: 8.922 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.5259, allocations: 165.5 kB / 473.1 MB, free: 8.758 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.254e-05/0.5259, allocations: 0 / 473.1 MB, free: 8.758 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.5261, allocations: 338.8 kB / 473.4 MB, free: 8.418 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.5262, allocations: 85.12 kB / 473.5 MB, free: 8.336 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001777/0.5264, allocations: 140.4 kB / 473.7 MB, free: 8.184 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001735/0.5266, allocations: 114.3 kB / 473.8 MB, free: 8.074 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.5266, allocations: 0 / 473.8 MB, free: 8.074 MB / 346.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0004504/0.527, allocations: 318.3 kB / 474.1 MB, free: 7.758 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.274e-05/0.5271, allocations: 4 kB / 474.1 MB, free: 7.754 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.5271, allocations: 0 / 474.1 MB, free: 7.754 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.941e-05/0.5271, allocations: 4 kB / 474.1 MB, free: 7.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000378/0.5275, allocations: 103.8 kB / 474.2 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.5275, allocations: 7.953 kB / 474.2 MB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.991e-05/0.5277, allocations: 4.062 kB / 474.2 MB, free: 7.637 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.586e-05/0.5277, allocations: 19.98 kB / 474.2 MB, free: 7.617 MB / 346.7 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.0001018/0.5278, allocations: 108.9 kB / 474.3 MB, free: 7.504 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004155/0.5282, allocations: 280.5 kB / 474.6 MB, free: 7.227 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.564e-05/0.5283, allocations: 31.72 kB / 474.6 MB, free: 7.195 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.375e-05/0.5284, allocations: 29.97 kB / 474.7 MB, free: 7.164 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.5284, allocations: 7.953 kB / 474.7 MB, free: 7.156 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.5284, allocations: 0 / 474.7 MB, free: 7.156 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.5284, allocations: 7.984 kB / 474.7 MB, free: 7.148 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.5295, allocations: 0.8555 MB / 475.5 MB, free: 6.242 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.5295, allocations: 4 kB / 475.5 MB, free: 6.238 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003951/0.5299, allocations: 99.83 kB / 475.6 MB, free: 6.141 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.5299, allocations: 4 kB / 475.6 MB, free: 6.137 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.119e-05/0.5299, allocations: 4 kB / 475.6 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.5299, allocations: 0 / 475.6 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.53, allocations: 4 kB / 475.6 MB, free: 6.129 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006644/0.5306, allocations: 0.6346 MB / 476.3 MB, free: 5.457 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.201e-05/0.5307, allocations: 100.8 kB / 476.4 MB, free: 5.34 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.669e-05/0.5307, allocations: 3.984 kB / 476.4 MB, free: 5.336 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001626/0.5309, allocations: 4 kB / 476.4 MB, free: 5.332 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.259e-05/0.531, allocations: 39.78 kB / 476.4 MB, free: 5.293 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.79e-05/0.531, allocations: 12 kB / 476.4 MB, free: 5.281 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.764e-05/0.5311, allocations: 120.3 kB / 476.6 MB, free: 5.164 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5311, allocations: 0 / 476.6 MB, free: 5.164 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003529/0.5314, allocations: 60 kB / 476.6 MB, free: 5.105 MB / 346.7 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.00101/0.5324, allocations: 1.372 MB / 478 MB, free: 3.688 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004072/0.5329, allocations: 262.8 kB / 478.2 MB, free: 3.434 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.5329, allocations: 128 / 478.2 MB, free: 3.434 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001771/0.5331, allocations: 145.1 kB / 478.4 MB, free: 3.293 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004631/0.5335, allocations: 37.86 kB / 478.4 MB, free: 3.258 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001609/0.5351, allocations: 0.94 MB / 479.4 MB, free: 2.266 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003916/0.5355, allocations: 0.7803 MB / 480.1 MB, free: 1.457 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001313/0.5357, allocations: 35.25 kB / 480.2 MB, free: 1.426 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.5358, allocations: 99.41 kB / 480.3 MB, free: 1.328 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5358, allocations: 0 / 480.3 MB, free: 1.328 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0271/0.5629, allocations: 5.016 MB / 485.3 MB, free: 12.35 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002382/0.5632, allocations: 150.1 kB / 485.4 MB, free: 12.16 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.963/2.527, allocations: 0 / 485.4 MB, free: 12.16 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_InitialConditions_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_InitialConditions.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions_res.mat does not exist to compare? outputFormat=mat