Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mixingVolume1.medium.T|mixingVolume2.medium.T",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes") translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mixingVolume1.medium.T|mixingVolume2.medium.T",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0018/0.0018, allocations: 200.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.25/1.25, allocations: 226.6 MB / 243.1 MB, free: 14.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008393/0.0008393, allocations: 105.3 kB / 295.1 MB, free: 10.02 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1775/0.1775, allocations: 44.83 MB / 392 MB, free: 9.293 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002174/0.0002174, allocations: 15.98 kB / 464.7 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09415/0.09438, allocations: 62.95 MB / 0.5153 GB, free: 2.754 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes): time 0.192/0.2864, allocations: 16.66 MB / 0.5316 GB, free: 2.324 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.008431/0.2949, allocations: 6.633 MB / 0.5381 GB, free: 13.62 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006862/0.2956, allocations: 22.19 kB / 0.5381 GB, free: 13.61 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008998/0.2965, allocations: 315.1 kB / 0.5384 GB, free: 13.45 MB / 362.7 MB [/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. [/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. Notification: Performance of NFTyping.typeBindings: time 0.001505/0.298, allocations: 0.6796 MB / 0.5391 GB, free: 13.05 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003161/0.3012, allocations: 1.047 MB / 0.5401 GB, free: 12.54 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003447/0.3046, allocations: 2.982 MB / 0.543 GB, free: 11.46 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009502/0.3056, allocations: 0.5438 MB / 0.5435 GB, free: 11.28 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001502/0.3071, allocations: 0.896 MB / 0.5444 GB, free: 10.83 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009833/0.3081, allocations: 0.7462 MB / 0.5451 GB, free: 10.42 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001263/0.3083, allocations: 50.31 kB / 0.5452 GB, free: 10.42 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001105/0.3094, allocations: 305.4 kB / 0.5455 GB, free: 10.32 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003199/0.3097, allocations: 331.4 kB / 0.5458 GB, free: 10.11 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002101/0.3099, allocations: 202 kB / 0.546 GB, free: 10 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001143/0.3111, allocations: 1.074 MB / 0.547 GB, free: 9.324 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.3111, allocations: 0 / 0.547 GB, free: 9.324 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3111, allocations: 4 kB / 0.547 GB, free: 9.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.3111, allocations: 1.031 kB / 0.547 GB, free: 9.32 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 0.001999/0.3131, allocations: 1.109 MB / 0.5481 GB, free: 8.484 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.3132, allocations: 12.88 kB / 0.5481 GB, free: 8.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000407/0.3136, allocations: 119.5 kB / 0.5482 GB, free: 8.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008299/0.3144, allocations: 0.5692 MB / 0.5488 GB, free: 7.969 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001746/0.3146, allocations: 250.2 kB / 0.549 GB, free: 7.738 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/0.3147, allocations: 88.64 kB / 0.5491 GB, free: 7.703 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001763/0.3165, allocations: 1.295 MB / 0.5504 GB, free: 6.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.871e-05/0.3165, allocations: 8.188 kB / 0.5504 GB, free: 6.746 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001013/0.3166, allocations: 43.75 kB / 0.5504 GB, free: 6.715 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.344e-05/0.3167, allocations: 46.86 kB / 0.5505 GB, free: 6.699 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0015/0.3182, allocations: 0.955 MB / 0.5514 GB, free: 6.23 MB / 362.7 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.006295/0.3245, allocations: 7.1 MB / 0.5583 GB, free: 15.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004508/0.325, allocations: 305.4 kB / 0.5586 GB, free: 15.47 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002432/0.3252, allocations: 167.4 kB / 0.5588 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00227/0.3275, allocations: 2.823 MB / 0.5615 GB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.855e-05/0.3276, allocations: 42.5 kB / 0.5616 GB, free: 12.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 1.653e-06/0.3276, allocations: 0 / 0.5616 GB, free: 12.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002051/0.3296, allocations: 1.118 MB / 0.5627 GB, free: 11.51 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.3297, allocations: 55.53 kB / 0.5627 GB, free: 11.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001059/0.3307, allocations: 0.8678 MB / 0.5636 GB, free: 10.94 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.569e-05/0.3308, allocations: 33.8 kB / 0.5636 GB, free: 10.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000409/0.3312, allocations: 0.5651 MB / 0.5642 GB, free: 10.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.3313, allocations: 139.8 kB / 0.5643 GB, free: 10.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.762e-05/0.3314, allocations: 21.31 kB / 0.5643 GB, free: 10.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.3316, allocations: 402.7 kB / 0.5647 GB, free: 9.855 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004459/0.332, allocations: 246.5 kB / 0.5649 GB, free: 9.613 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008924/0.3329, allocations: 0.9504 MB / 0.5659 GB, free: 8.305 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007052/0.3336, allocations: 443.3 kB / 0.5663 GB, free: 7.871 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.008e-05/0.3337, allocations: 8 kB / 0.5663 GB, free: 7.863 MB / 378.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.001617/0.3353, allocations: 1.199 MB / 0.5675 GB, free: 6.656 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/0.3353, allocations: 17.88 kB / 0.5675 GB, free: 6.641 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.802e-05/0.3354, allocations: 24.84 kB / 0.5675 GB, free: 6.617 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.685e-05/0.3354, allocations: 40 kB / 0.5675 GB, free: 6.578 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007366/0.3361, allocations: 283.4 kB / 0.5678 GB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.593e-05/0.3362, allocations: 55.72 kB / 0.5679 GB, free: 6.246 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006908/0.3369, allocations: 63.84 kB / 0.5679 GB, free: 6.184 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.482e-05/0.337, allocations: 79.98 kB / 0.568 GB, free: 6.105 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 117 * Number of states: 0 () * Number of discrete variables: 12 (mixingVolume1.regularFlow[1],mixingVolume1.regularFlow[2],mixingVolume1.regularFlow[3],mixingVolume2.regularFlow[1],mixingVolume2.regularFlow[2],mixingVolume2.regularFlow[3],mixingVolume2.inFlow[3],mixingVolume2.inFlow[2],mixingVolume2.inFlow[1],mixingVolume1.inFlow[3],mixingVolume1.inFlow[2],mixingVolume1.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (154): * Single equations (assignments): 154 * 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.0003602/0.3373, allocations: 342.1 kB / 0.5683 GB, free: 5.762 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.3375, allocations: 86.97 kB / 0.5684 GB, free: 5.676 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007628/0.3382, allocations: 478.8 kB / 0.5689 GB, free: 5.195 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.894e-06/0.3383, allocations: 4 kB / 0.5689 GB, free: 5.191 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3383, allocations: 0 / 0.5689 GB, free: 5.191 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.3383, allocations: 7.922 kB / 0.5689 GB, free: 5.184 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00148/0.3398, allocations: 1.237 MB / 0.5701 GB, free: 3.836 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.3398, allocations: 0 / 0.5701 GB, free: 3.836 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002735/0.3401, allocations: 75.89 kB / 0.5702 GB, free: 3.762 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.3401, allocations: 4 kB / 0.5702 GB, free: 3.758 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.3401, allocations: 8 kB / 0.5702 GB, free: 3.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/0.3401, allocations: 4 kB / 0.5702 GB, free: 3.746 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.3401, allocations: 7.953 kB / 0.5702 GB, free: 3.738 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007915/0.3409, allocations: 0.6554 MB / 0.5708 GB, free: 3.051 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002421/0.3412, allocations: 203.9 kB / 0.571 GB, free: 2.832 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.593e-05/0.3413, allocations: 16.06 kB / 0.571 GB, free: 2.816 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004159/0.3417, allocations: 23.89 kB / 0.5711 GB, free: 2.793 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.582e-05/0.3417, allocations: 27.86 kB / 0.5711 GB, free: 2.766 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.678e-05/0.3418, allocations: 27.97 kB / 0.5711 GB, free: 2.738 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006552/0.3425, allocations: 0.5811 MB / 0.5717 GB, free: 2.145 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3425, allocations: 4 kB / 0.5717 GB, free: 2.141 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009568/0.3434, allocations: 299.9 kB / 0.572 GB, free: 1.848 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (mixingVolume1.medium.T,mixingVolume2.medium.T) * 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 (34): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0005676/0.344, allocations: 298.5 kB / 0.5723 GB, free: 1.555 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008887/0.3449, allocations: 0.6304 MB / 0.5729 GB, free: 0.9297 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.3449, allocations: 8.062 kB / 0.5729 GB, free: 0.9219 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000205/0.3451, allocations: 139.8 kB / 0.573 GB, free: 0.7852 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001726/0.3469, allocations: 397.3 kB / 0.5734 GB, free: 416 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002233/0.3491, allocations: 1.802 MB / 0.5752 GB, free: 14.55 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005533/0.3497, allocations: 0.9973 MB / 0.5761 GB, free: 13.52 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/0.3499, allocations: 87.42 kB / 0.5762 GB, free: 13.43 MB / 394.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3499, allocations: 4 kB / 0.5762 GB, free: 13.43 MB / 394.7 MB Notification: Performance of Templates: time 0.02006/0.3699, allocations: 14.42 MB / 0.5903 GB, free: 15.08 MB / 410.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Vessels/TestMixingVolumes/TestMixingVolumes.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches