Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice",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.002206/0.002206, allocations: 179.4 kB / 8.364 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.135/2.135, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.00113/0.001129, allocations: 98.64 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3019/0.3019, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.227e-05/2.227e-05, allocations: 4 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4191/0.4191, allocations: 58.85 MB / 477.2 MB, free: 5.176 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.9/2.32, allocations: 0.5907 GB / 1.057 GB, free: 137.1 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003844/2.32, allocations: 98.69 kB / 1.057 GB, free: 137.1 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 1.349/3.669, allocations: 265.1 MB / 1.316 GB, free: 84.34 MB / 0.4952 GB Notification: Performance of FrontEnd: time 1.733e-06/3.669, allocations: 3.5 kB / 1.316 GB, free: 84.34 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 5.635e-05/3.669, allocations: 23.84 kB / 1.316 GB, free: 84.32 MB / 0.4952 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.003782/3.673, allocations: 1.193 MB / 1.317 GB, free: 83.09 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 5.422e-05/3.673, allocations: 12.03 kB / 1.317 GB, free: 83.07 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001737/3.675, allocations: 153.9 kB / 1.317 GB, free: 82.93 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001311/3.676, allocations: 0.4977 MB / 1.317 GB, free: 82.4 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.889e-05/3.676, allocations: 19.94 kB / 1.317 GB, free: 82.38 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.208e-05/3.676, allocations: 24 kB / 1.317 GB, free: 82.36 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001059/3.677, allocations: 430.5 kB / 1.318 GB, free: 81.94 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/3.678, allocations: 0.542 MB / 1.318 GB, free: 81.34 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.277e-05/3.678, allocations: 3.938 kB / 1.318 GB, free: 81.34 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.916e-05/3.678, allocations: 4 kB / 1.318 GB, free: 81.34 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.414e-05/3.679, allocations: 12 kB / 1.318 GB, free: 81.32 MB / 0.4952 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004205/3.683, allocations: 2.594 MB / 1.321 GB, free: 78.59 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005259/3.683, allocations: 229.7 kB / 1.321 GB, free: 78.36 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002599/3.684, allocations: 120.8 kB / 1.321 GB, free: 78.24 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004122/3.684, allocations: 329.9 kB / 1.322 GB, free: 77.86 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.592e-05/3.684, allocations: 45.56 kB / 1.322 GB, free: 77.81 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=31): time 2.705e-06/3.684, allocations: 0 / 1.322 GB, free: 77.81 MB / 0.4952 GB Notification: Performance of matching and sorting (n=31): time 0.003946/3.688, allocations: 0.7708 MB / 1.322 GB, free: 77.03 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.639e-05/3.688, allocations: 162.2 kB / 1.323 GB, free: 76.84 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006166/3.689, allocations: 385.1 kB / 1.323 GB, free: 76.46 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 7.325e-05/3.689, allocations: 25.7 kB / 1.323 GB, free: 76.43 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001889/3.689, allocations: 358.4 kB / 1.323 GB, free: 76.07 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/3.689, allocations: 113.4 kB / 1.323 GB, free: 75.96 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.955e-05/3.689, allocations: 0 / 1.323 GB, free: 75.96 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 7.016e-05/3.689, allocations: 330.8 kB / 1.324 GB, free: 75.63 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002929/3.69, allocations: 125.1 kB / 1.324 GB, free: 75.51 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004005/3.69, allocations: 299.6 kB / 1.324 GB, free: 75.14 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003274/3.693, allocations: 0.5953 MB / 1.325 GB, free: 74.55 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.053e-05/3.693, allocations: 0 / 1.325 GB, free: 74.55 MB / 0.4952 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.004136/3.697, allocations: 0.8917 MB / 1.326 GB, free: 73.65 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 2.837e-05/3.698, allocations: 8 kB / 1.326 GB, free: 73.64 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/3.698, allocations: 4 kB / 1.326 GB, free: 73.64 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002915/3.698, allocations: 44.84 kB / 1.326 GB, free: 73.59 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006617/3.699, allocations: 120.4 kB / 1.326 GB, free: 73.48 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006622/3.699, allocations: 0.6186 MB / 1.326 GB, free: 72.83 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007517/3.7, allocations: 47.52 kB / 1.326 GB, free: 72.79 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/3.7, allocations: 52.05 kB / 1.326 GB, free: 72.73 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 51 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001755/3.7, allocations: 116.9 kB / 1.327 GB, free: 72.61 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003815/3.704, allocations: 0.7749 MB / 1.327 GB, free: 71.83 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/3.704, allocations: 55.39 kB / 1.327 GB, free: 71.77 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002518/3.707, allocations: 0.625 MB / 1.328 GB, free: 71.13 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/3.707, allocations: 4 kB / 1.328 GB, free: 71.13 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/3.707, allocations: 0 / 1.328 GB, free: 71.13 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/3.707, allocations: 3.984 kB / 1.328 GB, free: 71.12 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002835/3.71, allocations: 1.135 MB / 1.329 GB, free: 69.89 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/3.71, allocations: 4 kB / 1.329 GB, free: 69.89 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003541/3.71, allocations: 43.92 kB / 1.329 GB, free: 69.84 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002184/3.71, allocations: 44.83 kB / 1.329 GB, free: 69.8 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.433e-05/3.71, allocations: 11.98 kB / 1.329 GB, free: 69.79 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006111/3.711, allocations: 0.611 MB / 1.33 GB, free: 69.15 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/3.711, allocations: 4 kB / 1.33 GB, free: 69.14 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001808/3.713, allocations: 0.626 MB / 1.33 GB, free: 68.42 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002418/3.713, allocations: 148.4 kB / 1.331 GB, free: 68.26 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/3.713, allocations: 7.984 kB / 1.331 GB, free: 68.25 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006495/3.714, allocations: 19.89 kB / 1.331 GB, free: 68.23 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.115e-05/3.714, allocations: 27.97 kB / 1.331 GB, free: 68.2 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.48e-05/3.714, allocations: 27.88 kB / 1.331 GB, free: 68.18 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.0005102/3.715, allocations: 322.9 kB / 1.331 GB, free: 67.86 MB / 0.4952 GB Notification: Performance of sort global known variables: time 3.7e-07/3.715, allocations: 0 / 1.331 GB, free: 67.86 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.001887/3.717, allocations: 411.3 kB / 1.331 GB, free: 67.46 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004948/3.722, allocations: 3.066 MB / 1.334 GB, free: 64.47 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.001047/3.723, allocations: 317.6 kB / 1.335 GB, free: 64.16 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/3.723, allocations: 4.062 kB / 1.335 GB, free: 64.16 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.0003217/3.723, allocations: 123.8 kB / 1.335 GB, free: 64.04 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002287/3.725, allocations: 266.5 kB / 1.335 GB, free: 63.77 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002525/3.728, allocations: 0.809 MB / 1.336 GB, free: 62.89 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003558/3.728, allocations: 0.8743 MB / 1.337 GB, free: 61.99 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007411/3.729, allocations: 243.3 kB / 1.337 GB, free: 61.75 MB / 0.4952 GB Notification: Performance of SimCode: time 1.143e-06/3.729, allocations: 0 / 1.337 GB, free: 61.75 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.253/6.982, allocations: 21.24 MB / 1.358 GB, free: 40.5 MB / 0.4952 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice_res.mat does not exist to compare? outputFormat=mat