Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.Performance.Example2.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Fluid.Examples.Performance.Example2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump_dp.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.Example2") translateModel(Buildings.Fluid.Examples.Performance.Example2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump_dp.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.Example2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 103.9 kB / 16.27 MB, free: 5.98 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.001567/0.001567, allocations: 189.8 kB / 17.2 MB, free: 5.605 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.633/1.633, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.234/2.234, allocations: 390.3 MB / 0.6653 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 70.72 kB / 0.8132 GB, free: 32.91 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2747, allocations: 140.4 MB / 0.9503 GB, free: 8.895 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.Example2): time 0.03213/0.3069, allocations: 29.64 MB / 0.9792 GB, free: 11.14 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0152/0.3222, allocations: 9.913 MB / 0.9889 GB, free: 1.195 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001772/0.324, allocations: 47.75 kB / 0.9889 GB, free: 1.148 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.002388/0.3264, allocations: 0.6877 MB / 0.9896 GB, free: 468 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.004511/0.331, allocations: 1.454 MB / 0.991 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.003863/0.3349, allocations: 1.379 MB / 0.9924 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.005168/0.3401, allocations: 3.831 MB / 0.9961 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002332/0.3424, allocations: 1.357 MB / 0.9974 GB, free: 8.402 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003594/0.346, allocations: 1.482 MB / 0.9989 GB, free: 6.918 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001829/0.3479, allocations: 1.05 MB / 0.9999 GB, free: 5.863 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0004522/0.3484, allocations: 120 kB / 1 GB, free: 5.746 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002767/0.3511, allocations: 1.123 MB / 1.001 GB, free: 4.621 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.000653/0.3518, allocations: 394.6 kB / 1.001 GB, free: 4.234 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.001397/0.3532, allocations: 0.7929 MB / 1.002 GB, free: 3.438 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.00406/0.3573, allocations: 2.415 MB / 1.005 GB, free: 1.016 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3573, allocations: 0 / 1.005 GB, free: 1.016 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3573, allocations: 0 / 1.005 GB, free: 1.016 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.761e-05/0.3574, allocations: 0 / 1.005 GB, free: 1.016 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.004046/0.3615, allocations: 1.942 MB / 1.007 GB, free: 15.01 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.3615, allocations: 8.031 kB / 1.007 GB, free: 15 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001853/0.3634, allocations: 350.6 kB / 1.007 GB, free: 14.66 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002851/0.3662, allocations: 1.324 MB / 1.008 GB, free: 13.28 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.456e-05/0.3663, allocations: 66 kB / 1.008 GB, free: 13.22 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001978/0.3665, allocations: 84 kB / 1.008 GB, free: 13.14 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001927/0.3685, allocations: 0.9967 MB / 1.009 GB, free: 12.08 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.576e-05/0.3685, allocations: 3.938 kB / 1.009 GB, free: 12.08 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.411e-05/0.3686, allocations: 32 kB / 1.009 GB, free: 12.05 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.829e-05/0.3687, allocations: 20 kB / 1.009 GB, free: 12.03 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001711/0.3704, allocations: 0.7532 MB / 1.01 GB, free: 11.27 MB / 0.795 GB 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.006565/0.377, allocations: 4.91 MB / 1.015 GB, free: 6.027 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001429/0.3784, allocations: 0.601 MB / 1.015 GB, free: 5.422 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007757/0.3792, allocations: 335.7 kB / 1.016 GB, free: 5.094 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002427/0.3817, allocations: 1.615 MB / 1.017 GB, free: 3.328 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007878/0.3825, allocations: 359 kB / 1.018 GB, free: 2.965 MB / 0.795 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004143/0.3829, allocations: 55.31 kB / 1.018 GB, free: 2.91 MB / 0.795 GB Notification: Performance of pre-optimization done (n=43): time 2.985e-06/0.3829, allocations: 0 / 1.018 GB, free: 2.91 MB / 0.795 GB Notification: Performance of matching and sorting (n=43): time 0.003428/0.3863, allocations: 1.223 MB / 1.019 GB, free: 1.656 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/0.3864, allocations: 59.41 kB / 1.019 GB, free: 1.586 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001833/0.3882, allocations: 1.278 MB / 1.02 GB, free: 300 kB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 8.373e-05/0.3883, allocations: 41.7 kB / 1.02 GB, free: 252 kB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005933/0.3889, allocations: 0.645 MB / 1.021 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001679/0.3891, allocations: 153.8 kB / 1.021 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002519/0.3894, allocations: 158.2 kB / 1.021 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.3895, allocations: 341.9 kB / 1.022 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006901/0.3902, allocations: 287.6 kB / 1.022 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009122/0.3911, allocations: 0.6061 MB / 1.022 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00151/0.3927, allocations: 0.8566 MB / 1.023 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.3927, allocations: 3.938 kB / 1.023 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002585/0.3953, allocations: 1.133 MB / 1.024 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.666e-05/0.3953, allocations: 33.7 kB / 1.024 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.017e-05/0.3954, allocations: 8 kB / 1.024 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006589/0.396, allocations: 197.1 kB / 1.025 GB, free: 11.54 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005965/0.3966, allocations: 147.8 kB / 1.025 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007304/0.3974, allocations: 0.7629 MB / 1.025 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009274/0.3983, allocations: 52.59 kB / 1.026 GB, free: 10.55 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.904e-05/0.3984, allocations: 43.98 kB / 1.026 GB, free: 10.51 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001116/0.3995, allocations: 0.5756 MB / 1.026 GB, free: 9.93 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000783/0.4003, allocations: 0.5787 MB / 1.027 GB, free: 9.207 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001244/0.4016, allocations: 0.7902 MB / 1.027 GB, free: 8.305 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.268e-06/0.4016, allocations: 0 / 1.027 GB, free: 8.305 MB / 0.8106 GB Notification: Performance of matching and sorting (n=84) (initialization_lambda0): time 0.002203/0.4038, allocations: 1.105 MB / 1.029 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.772e-05/0.4039, allocations: 37.73 kB / 1.029 GB, free: 7.121 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.4039, allocations: 8 kB / 1.029 GB, free: 7.113 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000209/0.4041, allocations: 104.8 kB / 1.029 GB, free: 7.008 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005379/0.4047, allocations: 139.8 kB / 1.029 GB, free: 6.871 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00221/0.4069, allocations: 2.364 MB / 1.031 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008198/0.4077, allocations: 52.62 kB / 1.031 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.656e-05/0.4078, allocations: 44.05 kB / 1.031 GB, free: 4.262 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,nRes.y,from_dp.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 68 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002645/0.4081, allocations: 237.2 kB / 1.031 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002848/0.4084, allocations: 126.4 kB / 1.032 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002069/0.4104, allocations: 0.9042 MB / 1.032 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-05/0.4105, allocations: 11.94 kB / 1.032 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.4105, allocations: 0 / 1.032 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001509/0.412, allocations: 0.9154 MB / 1.033 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003343/0.4153, allocations: 1.873 MB / 1.035 GB, free: 32 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.032e-06/0.4154, allocations: 4 kB / 1.035 GB, free: 28 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004766/0.4159, allocations: 83.98 kB / 1.035 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002754/0.4161, allocations: 128.7 kB / 1.035 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.964e-05/0.4162, allocations: 11.98 kB / 1.035 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005897/0.4168, allocations: 0.7474 MB / 1.036 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.4168, allocations: 0 / 1.036 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002405/0.4192, allocations: 1.248 MB / 1.037 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004417/0.4197, allocations: 255.4 kB / 1.038 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001985/0.4199, allocations: 19.98 kB / 1.038 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006281/0.4205, allocations: 36.03 kB / 1.038 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.4206, allocations: 36.39 kB / 1.038 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.023e-05/0.4207, allocations: 27.97 kB / 1.038 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001243/0.4219, allocations: 0.8819 MB / 1.039 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3e-07/0.422, allocations: 0 / 1.039 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001921/0.4239, allocations: 0.6472 MB / 1.039 GB, free: 11.83 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (pump_dp.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001059/0.4249, allocations: 380.2 kB / 1.04 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.003331/0.4283, allocations: 1.444 MB / 1.041 GB, free: 9.98 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.4283, allocations: 0 / 1.041 GB, free: 9.98 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008734/0.4292, allocations: 347.1 kB / 1.041 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00319/0.4324, allocations: 0.5978 MB / 1.042 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005043/0.4375, allocations: 2.308 MB / 1.044 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009673/0.4384, allocations: 1.264 MB / 1.045 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003526/0.4388, allocations: 107.4 kB / 1.045 GB, free: 5.309 MB / 0.8262 GB Notification: Performance of SimCode: time 5.21e-07/0.4388, allocations: 0 / 1.045 GB, free: 5.309 MB / 0.8262 GB Notification: Performance of Templates: time 0.04055/0.4794, allocations: 29.04 MB / 1.074 GB, free: 8.445 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.Performance.Example2.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.Example2.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.Example2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.Example2.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.Example2.sim & ./Buildings_9_Buildings.Fluid.Examples.Performance.Example2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.Performance.Example2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.Performance.Example2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_Performance_Example2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Examples.Performance.Example2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches