Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.RadiatorSupply.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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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: translateModel(Buildings.Examples.Tutorial.CDL.Controls.Validation.RadiatorSupply,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conRadSup.TRoo|conRadSup.TSup|conRadSup.yVal",fileNamePrefix="Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.RadiatorSupply") translateModel(Buildings.Examples.Tutorial.CDL.Controls.Validation.RadiatorSupply,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conRadSup.TRoo|conRadSup.TSup|conRadSup.yVal",fileNamePrefix="Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.RadiatorSupply") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001817/0.001817, allocations: 107.7 kB / 16.37 MB, free: 6.477 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.00177/0.001771, allocations: 193.1 kB / 17.31 MB, free: 5.824 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.44/1.44, allocations: 222.9 MB / 241 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.497/2.497, allocations: 442.6 MB / 0.7165 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 59.91 kB / 0.8773 GB, free: 11.04 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2759, allocations: 153 MB / 1.027 GB, free: 2.109 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.RadiatorSupply): time 0.003475/0.2794, allocations: 2.209 MB / 1.029 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009103/0.2804, allocations: 0.5335 MB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.2805, allocations: 4 kB / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001793/0.2807, allocations: 47.47 kB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001091/0.2808, allocations: 43.59 kB / 1.03 GB, free: 15.26 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002925/0.2811, allocations: 139.8 kB / 1.03 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003606/0.2815, allocations: 368.2 kB / 1.03 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002843/0.2818, allocations: 177.1 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001711/0.282, allocations: 135.4 kB / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001457/0.2821, allocations: 139.2 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.895e-05/0.2822, allocations: 44 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 4.218e-05/0.2822, allocations: 40 kB / 1.031 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.608e-05/0.2823, allocations: 79.77 kB / 1.031 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001246/0.2825, allocations: 151.1 kB / 1.031 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004033/0.2829, allocations: 482.4 kB / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2829, allocations: 0 / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.383e-06/0.2829, allocations: 0 / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.2829, allocations: 0 / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009142/0.2838, allocations: 0.5964 MB / 1.032 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.2839, allocations: 12.03 kB / 1.032 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.757e-05/0.2839, allocations: 36.47 kB / 1.032 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004459/0.2844, allocations: 331.2 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.04e-05/0.2844, allocations: 16.94 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.377e-05/0.2845, allocations: 24.38 kB / 1.032 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005253/0.285, allocations: 288.2 kB / 1.032 GB, free: 12.14 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.285, allocations: 3.938 kB / 1.032 GB, free: 12.14 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.604e-05/0.285, allocations: 12 kB / 1.032 GB, free: 12.13 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.2851, allocations: 8 kB / 1.032 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004902/0.2856, allocations: 206.1 kB / 1.033 GB, free: 11.92 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001409/0.287, allocations: 0.9702 MB / 1.034 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004881/0.2875, allocations: 275.9 kB / 1.034 GB, free: 10.59 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002343/0.2877, allocations: 108.8 kB / 1.034 GB, free: 10.48 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.2878, allocations: 0 / 1.034 GB, free: 10.48 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.345e-05/0.2878, allocations: 38.5 kB / 1.034 GB, free: 10.43 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.322e-06/0.2878, allocations: 0 / 1.034 GB, free: 10.43 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.0006963/0.2885, allocations: 260 kB / 1.034 GB, free: 10.18 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.052e-05/0.2886, allocations: 55.41 kB / 1.034 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002938/0.2889, allocations: 266.7 kB / 1.035 GB, free: 9.84 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/0.2889, allocations: 29.7 kB / 1.035 GB, free: 9.805 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.289, allocations: 180 kB / 1.035 GB, free: 9.625 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.807e-05/0.2891, allocations: 59.19 kB / 1.035 GB, free: 9.566 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.836e-05/0.2892, allocations: 45.7 kB / 1.035 GB, free: 9.516 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.2893, allocations: 334.8 kB / 1.035 GB, free: 9.18 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002114/0.2895, allocations: 72.81 kB / 1.035 GB, free: 9.105 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002354/0.2898, allocations: 122.7 kB / 1.035 GB, free: 8.969 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004122/0.2902, allocations: 197.8 kB / 1.036 GB, free: 8.762 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.2902, allocations: 0 / 1.036 GB, free: 8.762 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005145/0.2907, allocations: 251 kB / 1.036 GB, free: 8.512 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.2908, allocations: 4 kB / 1.036 GB, free: 8.508 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.2908, allocations: 0 / 1.036 GB, free: 8.508 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.2908, allocations: 4 kB / 1.036 GB, free: 8.504 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002317/0.291, allocations: 48.03 kB / 1.036 GB, free: 8.457 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.291, allocations: 4 kB / 1.036 GB, free: 8.453 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001496/0.2912, allocations: 31.7 kB / 1.036 GB, free: 8.422 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/0.2912, allocations: 15.92 kB / 1.036 GB, free: 8.406 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002452/0.2915, allocations: 172.1 kB / 1.036 GB, free: 8.234 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001917/0.2917, allocations: 127.3 kB / 1.036 GB, free: 8.094 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003363/0.292, allocations: 176.2 kB / 1.036 GB, free: 7.906 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.332e-06/0.292, allocations: 0 / 1.036 GB, free: 7.906 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0004408/0.2925, allocations: 239.6 kB / 1.037 GB, free: 7.668 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.287e-06/0.2925, allocations: 4 kB / 1.037 GB, free: 7.664 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-06/0.2925, allocations: 7.938 kB / 1.037 GB, free: 7.656 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.885e-06/0.2925, allocations: 0 / 1.037 GB, free: 7.656 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001982/0.2927, allocations: 48.16 kB / 1.037 GB, free: 7.609 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.2927, allocations: 8 kB / 1.037 GB, free: 7.602 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.2929, allocations: 23.83 kB / 1.037 GB, free: 7.578 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.2929, allocations: 4 kB / 1.037 GB, free: 7.574 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (conRadSup.conPIDRad.con1.y,conRadSup.conPIDRad.cheYMinMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001226/0.293, allocations: 192.1 kB / 1.037 GB, free: 7.379 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.881e-05/0.2931, allocations: 27.72 kB / 1.037 GB, free: 7.352 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000539/0.2936, allocations: 219.6 kB / 1.037 GB, free: 7.137 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.2936, allocations: 11.97 kB / 1.037 GB, free: 7.125 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.2936, allocations: 0 / 1.037 GB, free: 7.125 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.2936, allocations: 0 / 1.037 GB, free: 7.125 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001014/0.2947, allocations: 0.6211 MB / 1.038 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.2947, allocations: 4 kB / 1.038 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000195/0.2949, allocations: 39.91 kB / 1.038 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.2949, allocations: 0 / 1.038 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.778e-05/0.2949, allocations: 7.984 kB / 1.038 GB, free: 6.398 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.2949, allocations: 0 / 1.038 GB, free: 6.398 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.2949, allocations: 0 / 1.038 GB, free: 6.398 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007173/0.2956, allocations: 397.5 kB / 1.038 GB, free: 5.996 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.723e-05/0.2957, allocations: 96.86 kB / 1.038 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.073e-05/0.2958, allocations: 4 kB / 1.038 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/0.2959, allocations: 15.98 kB / 1.038 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.978e-05/0.296, allocations: 15.97 kB / 1.038 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.74e-05/0.296, allocations: 7.938 kB / 1.038 GB, free: 5.84 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001832/0.2962, allocations: 198 kB / 1.038 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2962, allocations: 4 kB / 1.038 GB, free: 5.641 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003995/0.2966, allocations: 79.69 kB / 1.039 GB, free: 5.562 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (conRadSup.conPIDRad.I.y) * 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 (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001423/0.2968, allocations: 111.2 kB / 1.039 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0007647/0.2975, allocations: 279.7 kB / 1.039 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2975, allocations: 0 / 1.039 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001942/0.2977, allocations: 87.89 kB / 1.039 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003796/0.2981, allocations: 40.84 kB / 1.039 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007891/0.2989, allocations: 455.3 kB / 1.039 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.2992, allocations: 0.7634 MB / 1.04 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001128/0.2993, allocations: 21.94 kB / 1.04 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.442e-05/0.2994, allocations: 27.44 kB / 1.04 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of SimCode: time 3.4e-07/0.2994, allocations: 0 / 1.04 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of Templates: time 0.005663/0.3051, allocations: 2.3 MB / 1.043 GB, free: 1.461 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.RadiatorSupply.makefile (rm -f Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.RadiatorSupply.pipe ; mkfifo Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.RadiatorSupply.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.RadiatorSupply.pipe >> ../files/Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.RadiatorSupply.sim & ./Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.RadiatorSupply -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.RadiatorSupply.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.RadiatorSupply_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_Tutorial_CDL_Controls_Validation_RadiatorSupply.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.RadiatorSupply.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches