Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009932/0.0009933, allocations: 95.86 kB / 17 MB, free: 6.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008766/0.0008767, allocations: 181 kB / 17.88 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 223.3 MB / 241.9 MB, free: 352 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2136/0.2136, allocations: 44.23 MB / 337.2 MB, free: 2.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003172/0.0003173, allocations: 9.031 kB / 409.7 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1468, allocations: 61.92 MB / 471.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice): time 0.5182/0.6651, allocations: 165 MB / 0.6217 GB, free: 14.15 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.007289/0.6725, allocations: 4.353 MB / 0.626 GB, free: 9.789 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007682/0.6733, allocations: 19.88 kB / 0.626 GB, free: 9.77 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009473/0.6742, allocations: 270.3 kB / 0.6262 GB, free: 9.504 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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.004648/0.6789, allocations: 1.445 MB / 0.6277 GB, free: 8.059 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002442/0.6814, allocations: 0.7474 MB / 0.6284 GB, free: 7.32 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002967/0.6843, allocations: 1.89 MB / 0.6302 GB, free: 5.422 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007129/0.6851, allocations: 357.4 kB / 0.6306 GB, free: 5.07 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001551/0.6866, allocations: 0.7278 MB / 0.6313 GB, free: 4.34 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006991/0.6873, allocations: 494.2 kB / 0.6318 GB, free: 3.855 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.933e-05/0.6874, allocations: 28 kB / 0.6318 GB, free: 3.828 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002466/0.6899, allocations: 1.069 MB / 0.6328 GB, free: 2.758 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001705/0.6901, allocations: 147.4 kB / 0.633 GB, free: 2.613 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001903/0.6903, allocations: 157.4 kB / 0.6331 GB, free: 2.453 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001497/0.6918, allocations: 1.122 MB / 0.6342 GB, free: 1.328 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.6918, allocations: 0 / 0.6342 GB, free: 1.328 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.6918, allocations: 0 / 0.6342 GB, free: 1.328 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.6918, allocations: 0 / 0.6342 GB, free: 1.328 MB / 462.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.001586/0.6934, allocations: 0.9474 MB / 0.6351 GB, free: 340 kB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.6935, allocations: 12.03 kB / 0.6351 GB, free: 328 kB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000111/0.6936, allocations: 82.53 kB / 0.6352 GB, free: 236 kB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00104/0.6946, allocations: 155.2 kB / 0.6354 GB, free: 80 kB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007719/0.6954, allocations: 476.6 kB / 0.6358 GB, free: 15.57 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.872e-05/0.6954, allocations: 37 kB / 0.6359 GB, free: 15.54 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.185e-05/0.6955, allocations: 40 kB / 0.6359 GB, free: 15.5 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001054/0.6966, allocations: 0.6438 MB / 0.6365 GB, free: 14.8 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.6966, allocations: 0 / 0.6365 GB, free: 14.8 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.92e-05/0.6967, allocations: 28 kB / 0.6366 GB, free: 14.78 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.6967, allocations: 12 kB / 0.6366 GB, free: 14.77 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008407/0.6975, allocations: 0.4956 MB / 0.6371 GB, free: 14.27 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.003119/0.7006, allocations: 2.656 MB / 0.6396 GB, free: 11.43 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006618/0.7013, allocations: 322.7 kB / 0.64 GB, free: 11.1 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002695/0.7016, allocations: 160.8 kB / 0.6401 GB, free: 10.94 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004533/0.7021, allocations: 437.5 kB / 0.6405 GB, free: 10.42 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.173e-05/0.7021, allocations: 38.56 kB / 0.6406 GB, free: 10.38 MB / 478.1 MB Notification: Performance of pre-optimization done (n=35): time 1.924e-06/0.7021, allocations: 0 / 0.6406 GB, free: 10.38 MB / 478.1 MB Notification: Performance of matching and sorting (n=35): time 0.00163/0.7038, allocations: 0.7016 MB / 0.6412 GB, free: 9.645 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.552e-05/0.7039, allocations: 166.1 kB / 0.6414 GB, free: 9.445 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008614/0.7047, allocations: 0.5222 MB / 0.6419 GB, free: 8.91 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002074/0.705, allocations: 33.7 kB / 0.6419 GB, free: 8.871 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000314/0.7053, allocations: 303.5 kB / 0.6422 GB, free: 8.57 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.7054, allocations: 122.3 kB / 0.6424 GB, free: 8.449 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-05/0.7054, allocations: 8 kB / 0.6424 GB, free: 8.441 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002113/0.7056, allocations: 362.8 kB / 0.6427 GB, free: 8.078 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003566/0.706, allocations: 145 kB / 0.6428 GB, free: 7.938 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003976/0.7064, allocations: 330.9 kB / 0.6432 GB, free: 7.535 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003304/0.7067, allocations: 196.8 kB / 0.6433 GB, free: 7.344 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.7068, allocations: 4 kB / 0.6434 GB, free: 7.34 MB / 478.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001075/0.7078, allocations: 0.5677 MB / 0.6439 GB, free: 6.762 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.7079, allocations: 11.98 kB / 0.6439 GB, free: 6.75 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.7079, allocations: 4 kB / 0.6439 GB, free: 6.746 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001479/0.7094, allocations: 288.8 kB / 0.6442 GB, free: 6.461 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004687/0.7099, allocations: 123.8 kB / 0.6443 GB, free: 6.34 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000591/0.7105, allocations: 0.5921 MB / 0.6449 GB, free: 5.723 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004678/0.7109, allocations: 67.42 kB / 0.645 GB, free: 5.656 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001012/0.711, allocations: 59.98 kB / 0.645 GB, free: 5.598 MB / 478.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.0003358/0.7114, allocations: 186.2 kB / 0.6452 GB, free: 5.406 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.7115, allocations: 55.34 kB / 0.6452 GB, free: 5.352 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002246/0.7138, allocations: 1.123 MB / 0.6463 GB, free: 4.207 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.7138, allocations: 4 kB / 0.6463 GB, free: 4.203 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.7138, allocations: 0 / 0.6463 GB, free: 4.203 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.7138, allocations: 0 / 0.6463 GB, free: 4.203 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001566/0.7154, allocations: 1.016 MB / 0.6473 GB, free: 3.109 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.7154, allocations: 0 / 0.6473 GB, free: 3.109 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001948/0.7156, allocations: 51.92 kB / 0.6474 GB, free: 3.059 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002931/0.7185, allocations: 0.5394 MB / 0.6479 GB, free: 2.516 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.639e-05/0.7186, allocations: 8 kB / 0.6479 GB, free: 2.508 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006161/0.7192, allocations: 0.5991 MB / 0.6485 GB, free: 1.883 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.7192, allocations: 0 / 0.6485 GB, free: 1.883 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008045/0.72, allocations: 0.4929 MB / 0.649 GB, free: 1.352 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000223/0.7203, allocations: 168.2 kB / 0.6491 GB, free: 1.168 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.353e-05/0.7204, allocations: 8 kB / 0.6492 GB, free: 1.16 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003431/0.7207, allocations: 27.92 kB / 0.6492 GB, free: 1.133 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.464e-05/0.7208, allocations: 27.92 kB / 0.6492 GB, free: 1.105 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.995e-05/0.7208, allocations: 19.98 kB / 0.6492 GB, free: 1.086 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.000538/0.7214, allocations: 414.8 kB / 0.6496 GB, free: 0.6836 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7214, allocations: 0 / 0.6496 GB, free: 0.6836 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0009843/0.7224, allocations: 299.7 kB / 0.6499 GB, free: 400 kB / 478.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.001889/0.7243, allocations: 1.325 MB / 0.6512 GB, free: 15.02 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008581/0.7252, allocations: 364.8 kB / 0.6516 GB, free: 14.67 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.7252, allocations: 8 kB / 0.6516 GB, free: 14.66 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003047/0.7255, allocations: 155.7 kB / 0.6517 GB, free: 14.51 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001657/0.7272, allocations: 351.2 kB / 0.652 GB, free: 14.17 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004949/0.7321, allocations: 3.245 MB / 0.6552 GB, free: 10.79 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004294/0.7326, allocations: 0.8675 MB / 0.6561 GB, free: 9.895 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001427/0.734, allocations: 0.5673 MB / 0.6566 GB, free: 9.324 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004341/0.7345, allocations: 239.3 kB / 0.6568 GB, free: 9.09 MB / 494.1 MB Notification: Performance of SimCode: time 1.333e-06/0.7345, allocations: 0 / 0.6568 GB, free: 9.09 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0768/0.8113, allocations: 20.71 MB / 0.6771 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003473/0.8117, allocations: 282.4 kB / 0.6773 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.544/3.356, allocations: 0 / 0.6773 GB, free: 4.367 MB / 0.4981 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_Orifice.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.Orifice_res.mat does not exist to compare? outputFormat=mat