Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.PressureDrop.SeriesFlowOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised") translateModel(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin.ports.1..m_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00737/0.00737, allocations: 97.23 kB / 15.73 MB, free: 6.488 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.00154/0.00154, allocations: 189.5 kB / 16.67 MB, free: 6.391 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.701/2.701, allocations: 437 MB / 0.7105 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 68.08 kB / 1.019 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2925/0.2938, allocations: 151.6 MB / 1.167 GB, free: 6.789 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised): time 0.8221/1.116, allocations: 161.6 MB / 1.324 GB, free: 7.539 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.003651/1.12, allocations: 1.757 MB / 1.326 GB, free: 6.344 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000615/1.12, allocations: 11.22 kB / 1.326 GB, free: 6.34 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0007507/1.121, allocations: 165.6 kB / 1.326 GB, free: 6.238 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.002016/1.123, allocations: 0.5538 MB / 1.327 GB, free: 5.941 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.001594/1.125, allocations: 390.8 kB / 1.327 GB, free: 5.762 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.003603/1.128, allocations: 2.526 MB / 1.33 GB, free: 4.676 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001617/1.13, allocations: 0.9342 MB / 1.331 GB, free: 4.32 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002463/1.132, allocations: 1.041 MB / 1.332 GB, free: 3.91 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001578/1.134, allocations: 0.7115 MB / 1.332 GB, free: 3.594 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.000285/1.134, allocations: 55.09 kB / 1.332 GB, free: 3.594 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002224/1.137, allocations: 0.7397 MB / 1.333 GB, free: 3.352 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0005511/1.137, allocations: 301.8 kB / 1.333 GB, free: 3.227 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.001377/1.139, allocations: 0.5467 MB / 1.334 GB, free: 2.918 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.002634/1.141, allocations: 1.405 MB / 1.335 GB, free: 2.414 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/1.141, allocations: 4 kB / 1.335 GB, free: 2.41 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.683e-06/1.141, allocations: 0 / 1.335 GB, free: 2.41 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.848e-05/1.141, allocations: 1.281 kB / 1.335 GB, free: 2.41 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.003411/1.145, allocations: 1.485 MB / 1.337 GB, free: 1.371 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/1.145, allocations: 13.38 kB / 1.337 GB, free: 1.367 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009585/1.146, allocations: 193.1 kB / 1.337 GB, free: 1.293 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001712/1.147, allocations: 0.853 MB / 1.338 GB, free: 0.8008 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.847e-05/1.148, allocations: 46.16 kB / 1.338 GB, free: 0.7812 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/1.148, allocations: 57.84 kB / 1.338 GB, free: 0.7656 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001362/1.149, allocations: 0.7953 MB / 1.339 GB, free: 356 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.278e-05/1.149, allocations: 1.125 kB / 1.339 GB, free: 356 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.442e-05/1.149, allocations: 22.62 kB / 1.339 GB, free: 340 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.944e-05/1.149, allocations: 13.81 kB / 1.339 GB, free: 340 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/1.15, allocations: 0.5389 MB / 1.339 GB, free: 180 kB / 1.014 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.004764/1.155, allocations: 4.598 MB / 1.344 GB, free: 12.28 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007562/1.156, allocations: 420.3 kB / 1.344 GB, free: 12.15 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004175/1.156, allocations: 239.9 kB / 1.344 GB, free: 12.08 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003327/1.157, allocations: 204.7 kB / 1.345 GB, free: 11.88 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005153/1.157, allocations: 287.5 kB / 1.345 GB, free: 11.75 MB / 1.029 GB Notification: Performance of pre-optimization done (n=31): time 2.584e-06/1.157, allocations: 3.938 kB / 1.345 GB, free: 11.75 MB / 1.029 GB Notification: Performance of matching and sorting (n=31): time 0.001547/1.159, allocations: 0.635 MB / 1.345 GB, free: 11.53 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.545e-05/1.159, allocations: 85.48 kB / 1.346 GB, free: 11.43 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00179/1.16, allocations: 1.117 MB / 1.347 GB, free: 11.04 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 6.587e-05/1.161, allocations: 39.33 kB / 1.347 GB, free: 11 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004296/1.161, allocations: 490.8 kB / 1.347 GB, free: 10.62 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/1.161, allocations: 120.5 kB / 1.347 GB, free: 10.53 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001858/1.161, allocations: 111.7 kB / 1.347 GB, free: 10.48 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001311/1.161, allocations: 330.3 kB / 1.348 GB, free: 10.16 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004055/1.162, allocations: 215.2 kB / 1.348 GB, free: 10.09 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006924/1.163, allocations: 0.5278 MB / 1.348 GB, free: 9.652 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001012/1.164, allocations: 0.6279 MB / 1.349 GB, free: 9.27 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/1.164, allocations: 5.062 kB / 1.349 GB, free: 9.266 MB / 1.029 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001602/1.165, allocations: 0.7229 MB / 1.35 GB, free: 8.977 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.298e-05/1.165, allocations: 36.27 kB / 1.35 GB, free: 8.945 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.625e-05/1.165, allocations: 5.625 kB / 1.35 GB, free: 8.945 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.94e-05/1.165, allocations: 8.438 kB / 1.35 GB, free: 8.945 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004772/1.166, allocations: 108.7 kB / 1.35 GB, free: 8.934 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.549e-05/1.166, allocations: 14.38 kB / 1.35 GB, free: 8.93 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009123/1.167, allocations: 78.98 kB / 1.35 GB, free: 8.895 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.074e-05/1.167, allocations: 23.72 kB / 1.35 GB, free: 8.891 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008042/1.168, allocations: 0.4964 MB / 1.35 GB, free: 8.703 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006116/1.168, allocations: 487.5 kB / 1.351 GB, free: 8.281 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008146/1.169, allocations: 0.5655 MB / 1.351 GB, free: 7.902 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.37e-06/1.169, allocations: 1.031 kB / 1.351 GB, free: 7.902 MB / 1.029 GB Notification: Performance of matching and sorting (n=54) (initialization_lambda0): time 0.00121/1.17, allocations: 0.6465 MB / 1.352 GB, free: 7.633 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.572e-05/1.17, allocations: 36.14 kB / 1.352 GB, free: 7.602 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/1.17, allocations: 14.84 kB / 1.352 GB, free: 7.594 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/1.17, allocations: 8.156 kB / 1.352 GB, free: 7.594 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003733/1.171, allocations: 112.2 kB / 1.352 GB, free: 7.574 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.739e-05/1.171, allocations: 14.12 kB / 1.352 GB, free: 7.57 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008014/1.172, allocations: 69.3 kB / 1.352 GB, free: 7.543 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.968e-05/1.172, allocations: 25.19 kB / 1.352 GB, free: 7.539 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 (pulse_p.count,$PRE.pulse_p.count,pulse_p.T_start,$PRE.pulse_p.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 1 * 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.0002286/1.172, allocations: 217.2 kB / 1.353 GB, free: 7.332 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001933/1.172, allocations: 102.8 kB / 1.353 GB, free: 7.277 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009872/1.173, allocations: 492.5 kB / 1.353 GB, free: 7.105 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.335e-06/1.173, allocations: 3.625 kB / 1.353 GB, free: 7.105 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/1.173, allocations: 0 / 1.353 GB, free: 7.105 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.647e-06/1.173, allocations: 3.641 kB / 1.353 GB, free: 7.105 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002318/1.175, allocations: 1.388 MB / 1.355 GB, free: 6.371 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/1.176, allocations: 7.281 kB / 1.355 GB, free: 6.367 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002412/1.176, allocations: 61.7 kB / 1.355 GB, free: 6.363 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.063e-05/1.176, allocations: 7.375 kB / 1.355 GB, free: 6.359 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.555e-05/1.176, allocations: 8.625 kB / 1.355 GB, free: 6.355 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.062e-06/1.176, allocations: 8.203 kB / 1.355 GB, free: 6.352 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/1.176, allocations: 2.312 kB / 1.355 GB, free: 6.352 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/1.177, allocations: 0.6027 MB / 1.355 GB, free: 6.008 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004379/1.177, allocations: 214.6 kB / 1.355 GB, free: 5.844 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001946/1.178, allocations: 18.81 kB / 1.355 GB, free: 5.832 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004113/1.178, allocations: 22.39 kB / 1.355 GB, free: 5.828 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/1.178, allocations: 26.28 kB / 1.355 GB, free: 5.824 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.704e-05/1.178, allocations: 9 kB / 1.355 GB, free: 5.824 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001164/1.179, allocations: 0.7905 MB / 1.356 GB, free: 5.539 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.2e-07/1.179, allocations: 0 / 1.356 GB, free: 5.539 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.00138/1.181, allocations: 414.5 kB / 1.357 GB, free: 5.484 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse_p.T_start,pulse_p.count) * Number of discrete states: 1 (pulse_p.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000452/1.181, allocations: 177.9 kB / 1.357 GB, free: 5.367 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001444/1.183, allocations: 0.8174 MB / 1.358 GB, free: 5.047 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/1.183, allocations: 0 / 1.358 GB, free: 5.047 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003629/1.183, allocations: 208.7 kB / 1.358 GB, free: 4.988 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001997/1.185, allocations: 451.3 kB / 1.358 GB, free: 4.762 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003184/1.188, allocations: 1.758 MB / 1.36 GB, free: 3.738 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008283/1.189, allocations: 1.177 MB / 1.361 GB, free: 2.809 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0009574/1.19, allocations: 413.4 kB / 1.361 GB, free: 2.625 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001717/1.19, allocations: 75.05 kB / 1.362 GB, free: 2.609 MB / 1.029 GB Notification: Performance of SimCode: time 4.11e-07/1.19, allocations: 0 / 1.362 GB, free: 2.609 MB / 1.029 GB Notification: Performance of Templates: time 0.02868/1.219, allocations: 17.19 MB / 1.378 GB, free: 10.23 MB / 1.045 GB make -j1 -f Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.makefile (rm -f Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; mkfifo Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe >> ../files/Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.sim & ./Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches