Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.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: translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002268/0.002274, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.116/2.116, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001152/0.001152, allocations: 90.84 kB / 270.9 MB, free: 13.39 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2848/0.2848, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004718/0.0004719, allocations: 12 kB / 431.4 MB, free: 20.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1215, allocations: 58.87 MB / 490.2 MB, free: 9.336 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve): time 0.06822/0.1898, allocations: 40.25 MB / 0.518 GB, free: 0.9766 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.3731/0.563, allocations: 22.54 MB / 0.5401 GB, free: 12.06 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00169/0.5647, allocations: 37.44 kB / 0.5401 GB, free: 12.06 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002378/0.5671, allocations: 0.5063 MB / 0.5406 GB, free: 11.98 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02143/0.5886, allocations: 4.753 MB / 0.5452 GB, free: 11.52 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01884/0.6075, allocations: 4.077 MB / 0.5492 GB, free: 9.984 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003711/0.6113, allocations: 1.48 MB / 0.5507 GB, free: 9.395 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001238/0.6125, allocations: 0.4989 MB / 0.5511 GB, free: 9.094 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02601/0.6386, allocations: 9.148 MB / 0.5601 GB, free: 6.43 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04103/0.6797, allocations: 14.36 MB / 0.5741 GB, free: 8.117 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003185/0.68, allocations: 40 kB / 0.5741 GB, free: 8.078 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0273/0.7074, allocations: 8.292 MB / 0.5822 GB, free: 15.87 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008588/0.7083, allocations: 273.1 kB / 0.5825 GB, free: 15.61 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007031/0.709, allocations: 233.1 kB / 0.5827 GB, free: 15.38 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0126/0.7216, allocations: 4.114 MB / 0.5867 GB, free: 11.51 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.7217, allocations: 0 / 0.5867 GB, free: 11.51 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.7217, allocations: 4 kB / 0.5867 GB, free: 11.51 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.944e-05/0.7217, allocations: 0 / 0.5867 GB, free: 11.51 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.00789/0.7296, allocations: 1.929 MB / 0.5886 GB, free: 9.539 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.509e-05/0.7297, allocations: 19.95 kB / 0.5886 GB, free: 9.52 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003853/0.7336, allocations: 370.5 kB / 0.589 GB, free: 9.156 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002074/0.7357, allocations: 0.7007 MB / 0.5897 GB, free: 8.438 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/0.7359, allocations: 68.09 kB / 0.5897 GB, free: 8.375 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000216/0.7361, allocations: 82.33 kB / 0.5898 GB, free: 8.297 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005344/0.7415, allocations: 1.448 MB / 0.5912 GB, free: 6.797 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.494e-05/0.7416, allocations: 7.938 kB / 0.5912 GB, free: 6.789 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001521/0.7417, allocations: 38.61 kB / 0.5913 GB, free: 6.754 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001556/0.7419, allocations: 61.97 kB / 0.5913 GB, free: 6.695 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005892/0.7478, allocations: 1.342 MB / 0.5926 GB, free: 5.355 MB / 394.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.01381/0.7617, allocations: 6.544 MB / 0.599 GB, free: 14.32 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004714/0.7664, allocations: 1.02 MB / 0.6 GB, free: 13.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1165/0.883, allocations: 32.47 MB / 0.6317 GB, free: 8.984 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.612e-05/0.8831, allocations: 39 kB / 0.6318 GB, free: 8.938 MB / 442.7 MB Notification: Performance of pre-optimization done (n=56): time 3.918e-06/0.8831, allocations: 0 / 0.6318 GB, free: 8.938 MB / 442.7 MB Notification: Performance of matching and sorting (n=60): time 0.01493/0.898, allocations: 3.328 MB / 0.635 GB, free: 5.555 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/0.8982, allocations: 166.8 kB / 0.6352 GB, free: 5.352 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001381/0.8996, allocations: 0.7114 MB / 0.6359 GB, free: 4.629 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001331/0.8997, allocations: 37.7 kB / 0.6359 GB, free: 4.586 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004253/0.9002, allocations: 441.3 kB / 0.6363 GB, free: 4.156 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002783/0.9004, allocations: 208.2 kB / 0.6365 GB, free: 3.953 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.739e-05/0.9005, allocations: 16 kB / 0.6366 GB, free: 3.938 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.9007, allocations: 338.8 kB / 0.6369 GB, free: 3.598 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001569/0.9023, allocations: 417.7 kB / 0.6373 GB, free: 3.191 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0018/0.9041, allocations: 0.6171 MB / 0.6379 GB, free: 2.484 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001684/0.9058, allocations: 489.8 kB / 0.6383 GB, free: 2.012 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.156e-06/0.9058, allocations: 4 kB / 0.6384 GB, free: 2.008 MB / 442.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.004576/0.9104, allocations: 1.304 MB / 0.6396 GB, free: 0.6914 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001066/0.9115, allocations: 2.445 MB / 0.642 GB, free: 14.06 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.82e-05/0.9116, allocations: 4 kB / 0.642 GB, free: 14.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005831/0.9174, allocations: 0.7065 MB / 0.6427 GB, free: 13.35 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.9187, allocations: 155.8 kB / 0.6429 GB, free: 13.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002812/0.9215, allocations: 1.305 MB / 0.6441 GB, free: 11.87 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/0.923, allocations: 104.7 kB / 0.6442 GB, free: 11.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/0.9232, allocations: 39.98 kB / 0.6443 GB, free: 11.73 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.9232, allocations: 4 kB / 0.6443 GB, free: 11.72 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004816/0.928, allocations: 1.232 MB / 0.6455 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.13e-05/0.9281, allocations: 12.03 kB / 0.6455 GB, free: 10.47 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003014/0.9311, allocations: 420.5 kB / 0.6459 GB, free: 10.06 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/0.9324, allocations: 171.8 kB / 0.6461 GB, free: 9.891 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002162/0.9346, allocations: 1.11 MB / 0.6471 GB, free: 8.758 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001175/0.9358, allocations: 104.7 kB / 0.6472 GB, free: 8.656 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.9359, allocations: 43.97 kB / 0.6473 GB, free: 8.613 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 9 (pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * 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 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0008304/0.9368, allocations: 356.9 kB / 0.6476 GB, free: 8.254 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003065/0.9371, allocations: 87.06 kB / 0.6477 GB, free: 8.168 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007722/0.9448, allocations: 3.339 MB / 0.651 GB, free: 4.824 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.93e-05/0.945, allocations: 39.92 kB / 0.651 GB, free: 4.785 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.626e-05/0.945, allocations: 4 kB / 0.651 GB, free: 4.781 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005598/0.9506, allocations: 2.778 MB / 0.6537 GB, free: 1.934 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009514/0.9601, allocations: 4.567 MB / 0.6582 GB, free: 13.33 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.787e-06/0.9602, allocations: 3.938 kB / 0.6582 GB, free: 13.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001315/0.9615, allocations: 179.8 kB / 0.6583 GB, free: 13.15 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006484/0.9622, allocations: 96.67 kB / 0.6584 GB, free: 13.05 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.031e-05/0.9623, allocations: 23.98 kB / 0.6585 GB, free: 13.03 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005897/0.9629, allocations: 0.6383 MB / 0.6591 GB, free: 12.36 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.9629, allocations: 0 / 0.6591 GB, free: 12.36 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006664/0.9696, allocations: 2.937 MB / 0.662 GB, free: 9.398 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009495/0.9706, allocations: 454.1 kB / 0.6624 GB, free: 8.934 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002483/0.9708, allocations: 16 kB / 0.6624 GB, free: 8.918 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00128/0.9721, allocations: 87.89 kB / 0.6625 GB, free: 8.832 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002245/0.9724, allocations: 60.56 kB / 0.6625 GB, free: 8.773 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.094e-05/0.9724, allocations: 20 kB / 0.6626 GB, free: 8.754 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001627/0.9741, allocations: 0.7902 MB / 0.6633 GB, free: 7.957 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.9741, allocations: 0 / 0.6633 GB, free: 7.957 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00618/0.9803, allocations: 1.636 MB / 0.6649 GB, free: 6.32 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 21 ($cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008374/0.9887, allocations: 1.568 MB / 0.6665 GB, free: 4.867 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006062/0.9948, allocations: 1.852 MB / 0.6683 GB, free: 3.016 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.9948, allocations: 4.25 kB / 0.6683 GB, free: 3.012 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002218/0.9971, allocations: 0.8875 MB / 0.6691 GB, free: 2.117 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004052/1.001, allocations: 484.8 kB / 0.6696 GB, free: 1.645 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007274/1.008, allocations: 3.775 MB / 0.6733 GB, free: 13.83 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001183/1.01, allocations: 1.333 MB / 0.6746 GB, free: 12.47 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004782/1.01, allocations: 87.42 kB / 0.6747 GB, free: 12.38 MB / 490.7 MB Notification: Performance of SimCode: time 8.91e-07/1.01, allocations: 4 kB / 0.6747 GB, free: 12.38 MB / 490.7 MB Notification: Performance of Templates: time 0.45/1.46, allocations: 45.83 MB / 0.7194 GB, free: 191.9 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/DynamicPipeClosingValve/DynamicPipeClosingValve.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches