Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008219/0.0008218, allocations: 102 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000846/0.000846, allocations: 193.9 kB / 17.9 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.3 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2348/0.2348, allocations: 45.93 MB / 344.1 MB, free: 12.24 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002696/0.0002696, allocations: 4 kB / 418.2 MB, free: 20.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1775/0.1778, allocations: 63.47 MB / 481.6 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice): time 0.5641/0.742, allocations: 165 MB / 0.6315 GB, free: 1.184 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.006784/0.7488, allocations: 4.377 MB / 0.6358 GB, free: 12.8 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008172/0.7497, allocations: 15.88 kB / 0.6358 GB, free: 12.78 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009562/0.7506, allocations: 262.4 kB / 0.6361 GB, free: 12.52 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.004575/0.7552, allocations: 1.45 MB / 0.6375 GB, free: 11.07 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002375/0.7576, allocations: 0.7502 MB / 0.6382 GB, free: 10.33 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002642/0.7603, allocations: 1.882 MB / 0.6401 GB, free: 8.441 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006842/0.761, allocations: 365.4 kB / 0.6404 GB, free: 8.082 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001739/0.7627, allocations: 0.7317 MB / 0.6411 GB, free: 7.348 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007748/0.7635, allocations: 494.2 kB / 0.6416 GB, free: 6.863 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 7.431e-05/0.7636, allocations: 28 kB / 0.6416 GB, free: 6.836 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002584/0.7662, allocations: 1.08 MB / 0.6427 GB, free: 5.754 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001852/0.7664, allocations: 143.5 kB / 0.6428 GB, free: 5.613 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002264/0.7666, allocations: 153.4 kB / 0.643 GB, free: 5.457 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001502/0.7681, allocations: 1.126 MB / 0.6441 GB, free: 4.328 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.7681, allocations: 7.922 kB / 0.6441 GB, free: 4.32 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.7682, allocations: 4 kB / 0.6441 GB, free: 4.316 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.248e-06/0.7682, allocations: 4 kB / 0.6441 GB, free: 4.312 MB / 478.1 MB 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.001673/0.7698, allocations: 0.9396 MB / 0.645 GB, free: 3.32 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.7699, allocations: 8.031 kB / 0.645 GB, free: 3.312 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001213/0.77, allocations: 92.02 kB / 0.6451 GB, free: 3.215 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001159/0.7712, allocations: 163.1 kB / 0.6452 GB, free: 3.055 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006527/0.7719, allocations: 480.7 kB / 0.6457 GB, free: 2.547 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/0.7719, allocations: 29 kB / 0.6457 GB, free: 2.516 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.064e-05/0.772, allocations: 44 kB / 0.6458 GB, free: 2.473 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.773, allocations: 0.6478 MB / 0.6464 GB, free: 1.777 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.773, allocations: 3.938 kB / 0.6464 GB, free: 1.773 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.151e-05/0.7731, allocations: 24 kB / 0.6464 GB, free: 1.75 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.7731, allocations: 16 kB / 0.6464 GB, free: 1.734 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008408/0.774, allocations: 0.4956 MB / 0.6469 GB, free: 1.238 MB / 478.1 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.00288/0.7769, allocations: 2.645 MB / 0.6495 GB, free: 14.41 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006416/0.7775, allocations: 328.8 kB / 0.6498 GB, free: 14.08 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002595/0.7778, allocations: 164.9 kB / 0.65 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003895/0.7782, allocations: 437.5 kB / 0.6504 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.292e-05/0.7782, allocations: 38.56 kB / 0.6504 GB, free: 13.35 MB / 494.1 MB Notification: Performance of pre-optimization done (n=35): time 1.834e-06/0.7782, allocations: 0 / 0.6504 GB, free: 13.35 MB / 494.1 MB Notification: Performance of matching and sorting (n=35): time 0.001526/0.7798, allocations: 0.7092 MB / 0.6511 GB, free: 12.61 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.612e-05/0.7799, allocations: 162.2 kB / 0.6513 GB, free: 12.41 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005552/0.7804, allocations: 0.5222 MB / 0.6518 GB, free: 11.88 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.084e-05/0.7805, allocations: 33.7 kB / 0.6518 GB, free: 11.84 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001995/0.7807, allocations: 303.5 kB / 0.6521 GB, free: 11.54 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.867e-05/0.7808, allocations: 122.2 kB / 0.6522 GB, free: 11.42 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.933e-05/0.7808, allocations: 12 kB / 0.6522 GB, free: 11.41 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.781, allocations: 362.8 kB / 0.6526 GB, free: 11.04 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000257/0.7812, allocations: 141.1 kB / 0.6527 GB, free: 10.91 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003748/0.7816, allocations: 330.9 kB / 0.653 GB, free: 10.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003228/0.7819, allocations: 191.8 kB / 0.6532 GB, free: 10.32 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.782, allocations: 0 / 0.6532 GB, free: 10.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0009467/0.7829, allocations: 0.5769 MB / 0.6538 GB, free: 9.73 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.7829, allocations: 8 kB / 0.6538 GB, free: 9.723 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.783, allocations: 11.89 kB / 0.6538 GB, free: 9.715 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001429/0.7844, allocations: 288.6 kB / 0.6541 GB, free: 9.43 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000366/0.7848, allocations: 119.8 kB / 0.6542 GB, free: 9.312 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004273/0.7852, allocations: 0.5874 MB / 0.6548 GB, free: 8.699 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003922/0.7856, allocations: 63.42 kB / 0.6548 GB, free: 8.637 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.644e-05/0.7857, allocations: 56.05 kB / 0.6549 GB, free: 8.582 MB / 494.1 MB 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 () * Number of clocked 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.000261/0.786, allocations: 197.2 kB / 0.6551 GB, free: 8.383 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.937e-05/0.7861, allocations: 59.34 kB / 0.6551 GB, free: 8.324 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002225/0.7883, allocations: 1.112 MB / 0.6562 GB, free: 7.184 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.7883, allocations: 4 kB / 0.6562 GB, free: 7.18 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.7884, allocations: 0 / 0.6562 GB, free: 7.18 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.7884, allocations: 7.922 kB / 0.6562 GB, free: 7.172 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/0.7897, allocations: 1.009 MB / 0.6572 GB, free: 6.086 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.7897, allocations: 0 / 0.6572 GB, free: 6.086 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001959/0.7899, allocations: 51.91 kB / 0.6573 GB, free: 6.035 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002912/0.7928, allocations: 0.5355 MB / 0.6578 GB, free: 5.496 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.387e-05/0.7928, allocations: 19.98 kB / 0.6578 GB, free: 5.477 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000413/0.7933, allocations: 0.5991 MB / 0.6584 GB, free: 4.852 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.7933, allocations: 0 / 0.6584 GB, free: 4.852 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007411/0.794, allocations: 0.4929 MB / 0.6589 GB, free: 4.32 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002054/0.7942, allocations: 160.2 kB / 0.659 GB, free: 4.145 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.7944, allocations: 24 kB / 0.659 GB, free: 4.121 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003422/0.7947, allocations: 27.98 kB / 0.6591 GB, free: 4.094 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.629e-05/0.7948, allocations: 23.97 kB / 0.6591 GB, free: 4.07 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.558e-05/0.7948, allocations: 19.98 kB / 0.6591 GB, free: 4.051 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0005056/0.7953, allocations: 410.8 kB / 0.6595 GB, free: 3.652 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7953, allocations: 0 / 0.6595 GB, free: 3.652 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0008933/0.7962, allocations: 299.7 kB / 0.6598 GB, free: 3.359 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 simulation (28): * Single equations (assignments): 27 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001694/0.7979, allocations: 1.33 MB / 0.6611 GB, free: 1.988 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0007896/0.7987, allocations: 361.2 kB / 0.6614 GB, free: 1.637 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.7988, allocations: 4 kB / 0.6614 GB, free: 1.633 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002965/0.7991, allocations: 164 kB / 0.6616 GB, free: 1.473 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001532/0.8006, allocations: 340 kB / 0.6619 GB, free: 1.145 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004634/0.8053, allocations: 3.249 MB / 0.6651 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004468/0.8057, allocations: 0.8753 MB / 0.6659 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001446/0.8072, allocations: 0.563 MB / 0.6665 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004335/0.8076, allocations: 235.3 kB / 0.6667 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of SimCode: time 1.232e-06/0.8076, allocations: 4 kB / 0.6667 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04584/0.8535, allocations: 20.75 MB / 0.687 GB, free: 7.617 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002235/0.8537, allocations: 270.7 kB / 0.6872 GB, free: 7.258 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.548/3.402, allocations: 2.344 kB / 0.6872 GB, free: 7.258 MB / 0.5137 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice_res.mat does not exist to compare? outputFormat=mat