Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.medium.h|pump.medium.p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.medium.h|pump.medium.p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002544/0.002544, allocations: 174.9 kB / 8.146 MB, free: 2.633 MB / 6.207 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.701/1.701, allocations: 205.2 MB / 213.8 MB, free: 2.156 MB / 174.1 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001221/0.001221, allocations: 96.34 kB / 261.8 MB, free: 1.484 MB / 206.1 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2559/0.2559, allocations: 43.48 MB / 353.2 MB, free: 5.902 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 9.197e-06/9.217e-06, allocations: 0 / 417.7 MB, free: 63.21 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09503/0.09506, allocations: 58.85 MB / 476.6 MB, free: 4.289 MB / 318.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.901/5.996, allocations: 2.781 GB / 3.247 GB, free: 111 MB / 0.4981 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002785/5.997, allocations: 85.39 kB / 3.247 GB, free: 111 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.918/7.915, allocations: 436.2 MB / 3.673 GB, free: 58.43 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.216e-05/7.915, allocations: 21.69 kB / 3.673 GB, free: 58.43 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.007949/7.923, allocations: 1.765 MB / 3.674 GB, free: 57.55 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/7.923, allocations: 11.94 kB / 3.674 GB, free: 57.55 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004041/7.927, allocations: 344.7 kB / 3.675 GB, free: 57.51 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001698/7.928, allocations: 0.5748 MB / 3.675 GB, free: 57.13 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.893e-05/7.929, allocations: 27 kB / 3.675 GB, free: 57.13 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001282/7.929, allocations: 33.31 kB / 3.675 GB, free: 57.12 MB / 0.4981 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001546/7.93, allocations: 0.5445 MB / 3.676 GB, free: 56.93 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001505/7.932, allocations: 0.6595 MB / 3.677 GB, free: 56.57 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.956e-05/7.932, allocations: 7.781 kB / 3.677 GB, free: 56.57 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.731e-05/7.932, allocations: 0 / 3.677 GB, free: 56.57 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.031e-05/7.932, allocations: 27.47 kB / 3.677 GB, free: 56.57 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05953/7.991, allocations: 19.55 MB / 3.696 GB, free: 43.58 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008455/7.992, allocations: 321.8 kB / 3.696 GB, free: 43.45 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005218/7.993, allocations: 219.4 kB / 3.696 GB, free: 43.36 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1702/8.163, allocations: 48.19 MB / 3.743 GB, free: 27.24 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.231e-05/8.163, allocations: 37.97 kB / 3.743 GB, free: 27.2 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=46): time 2.604e-06/8.163, allocations: 0.7812 kB / 3.743 GB, free: 27.2 MB / 0.5137 GB Notification: Performance of matching and sorting (n=50): time 0.009893/8.173, allocations: 1.855 MB / 3.745 GB, free: 25.66 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.962e-05/8.173, allocations: 111.2 kB / 3.745 GB, free: 25.53 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000737/8.174, allocations: 387.8 kB / 3.746 GB, free: 25.18 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 9.391e-05/8.174, allocations: 29.64 kB / 3.746 GB, free: 25.14 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.000159/8.174, allocations: 308.8 kB / 3.746 GB, free: 24.85 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001683/8.174, allocations: 164.3 kB / 3.746 GB, free: 24.7 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.505e-05/8.175, allocations: 4 kB / 3.746 GB, free: 24.7 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001949/8.175, allocations: 336.8 kB / 3.746 GB, free: 24.37 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006/8.175, allocations: 207.6 kB / 3.747 GB, free: 24.18 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006688/8.176, allocations: 377.5 kB / 3.747 GB, free: 23.76 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002035/8.178, allocations: 356.2 kB / 3.747 GB, free: 23.47 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.8e-06/8.178, allocations: 3.906 kB / 3.747 GB, free: 23.47 MB / 0.5137 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.005325/8.183, allocations: 1.127 MB / 3.748 GB, free: 22.54 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007596/8.184, allocations: 1.831 MB / 3.75 GB, free: 20.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/8.184, allocations: 4 kB / 3.75 GB, free: 20.57 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002008/8.186, allocations: 312 kB / 3.751 GB, free: 20.33 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/8.187, allocations: 146.4 kB / 3.751 GB, free: 20.21 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00255/8.19, allocations: 1.031 MB / 3.752 GB, free: 19.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/8.191, allocations: 81.8 kB / 3.752 GB, free: 19.17 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/8.191, allocations: 39.61 kB / 3.752 GB, free: 19.13 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/8.191, allocations: 7.938 kB / 3.752 GB, free: 19.12 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004253/8.196, allocations: 0.7744 MB / 3.753 GB, free: 18.47 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/8.196, allocations: 4 kB / 3.753 GB, free: 18.46 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002106/8.198, allocations: 265 kB / 3.753 GB, free: 18.26 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/8.199, allocations: 152.6 kB / 3.753 GB, free: 18.14 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0023/8.201, allocations: 0.9074 MB / 3.754 GB, free: 17.26 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/8.202, allocations: 77.78 kB / 3.754 GB, free: 17.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-05/8.202, allocations: 30.95 kB / 3.754 GB, free: 17.18 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,valve.state_b.phase,valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * 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 {4 19} Notification: Performance of prepare postOptimizeDAE: time 0.0002684/8.203, allocations: 45.52 kB / 3.754 GB, free: 17.12 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00117/8.204, allocations: 274.2 kB / 3.754 GB, free: 16.93 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004697/8.208, allocations: 2.258 MB / 3.756 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.264e-05/8.209, allocations: 27.28 kB / 3.756 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/8.209, allocations: 11.91 kB / 3.756 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/8.209, allocations: 3.75 kB / 3.756 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005837/8.214, allocations: 3.077 MB / 3.76 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.946e-06/8.215, allocations: 7.938 kB / 3.76 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/8.216, allocations: 135 kB / 3.76 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004344/8.216, allocations: 93.38 kB / 3.76 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6e-05/8.216, allocations: 15.84 kB / 3.76 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001281/8.217, allocations: 1.171 MB / 3.761 GB, free: 10.81 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/8.217, allocations: 0 / 3.761 GB, free: 10.81 MB / 0.5137 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005204/8.223, allocations: 2.342 MB / 3.763 GB, free: 8.648 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008199/8.224, allocations: 285.3 kB / 3.763 GB, free: 8.395 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001976/8.224, allocations: 4 kB / 3.763 GB, free: 8.391 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/8.225, allocations: 70.91 kB / 3.764 GB, free: 8.336 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/8.225, allocations: 66.5 kB / 3.764 GB, free: 8.297 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.719e-05/8.225, allocations: 23.75 kB / 3.764 GB, free: 8.277 MB / 0.5137 GB Notification: Performance of sort global known variables: time 0.0007152/8.226, allocations: 403.9 kB / 3.764 GB, free: 7.91 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006801/8.233, allocations: 1.368 MB / 3.765 GB, free: 6.578 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pump.medium.p,pump.medium.h) * Number of discrete variables: 15 ($cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,pump.heatTransfer.states[1].phase,Sink.medium.phase,Source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01158/8.244, allocations: 1.88 MB / 3.767 GB, free: 5.047 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.003843/8.248, allocations: 1.395 MB / 3.769 GB, free: 3.758 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/8.248, allocations: 4 kB / 3.769 GB, free: 3.754 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001747/8.25, allocations: 0.8992 MB / 3.769 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002599/8.253, allocations: 256.2 kB / 3.77 GB, free: 2.727 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004725/8.257, allocations: 1.736 MB / 3.771 GB, free: 1.125 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001354/8.259, allocations: 1.127 MB / 3.772 GB, free: 120 kB / 0.5137 GB Notification: Performance of SimCode: time 1.453e-06/8.259, allocations: 0 / 3.772 GB, free: 120 kB / 0.5137 GB Notification: Performance of Templates: time 0.2671/8.526, allocations: 38.3 MB / 3.81 GB, free: 116.7 MB / 0.5137 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpCheckValve/TestWaterPumpCheckValve.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches