Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.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.Utilities.Psychrometrics.Functions.Examples.pW_X,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|X|XInv|p_w|dX",fileNamePrefix="Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X") translateModel(Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|X|XInv|p_w|dX",fileNamePrefix="Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008133/0.008134, allocations: 169 kB / 16.26 MB, free: 6.652 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.451/1.451, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.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.569/2.569, allocations: 390.9 MB / 0.6663 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005079/0.000508, allocations: 11.94 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8189/0.8195, allocations: 142.4 MB / 0.955 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X): time 0.001531/0.8211, allocations: 0.9864 MB / 0.956 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006387/0.8217, allocations: 293.8 kB / 0.9563 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.892e-05/0.8218, allocations: 0 / 0.9563 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.693e-05/0.8218, allocations: 0 / 0.9563 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.55e-05/0.8219, allocations: 5.031 kB / 0.9563 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003068/0.8222, allocations: 50.62 kB / 0.9563 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.155e-05/0.8222, allocations: 16.27 kB / 0.9564 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.003e-05/0.8223, allocations: 1.969 kB / 0.9564 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.944e-05/0.8224, allocations: 7.312 kB / 0.9564 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.505e-05/0.8224, allocations: 7.469 kB / 0.9564 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.505e-05/0.8224, allocations: 1.031 kB / 0.9564 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00015/0.8226, allocations: 55.78 kB / 0.9564 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.241e-05/0.8226, allocations: 1.312 kB / 0.9564 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.508e-05/0.8227, allocations: 37.11 kB / 0.9565 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001419/0.8228, allocations: 49.8 kB / 0.9565 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.8228, allocations: 1.188 kB / 0.9565 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.543e-06/0.8228, allocations: 0 / 0.9565 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.088e-05/0.8228, allocations: 0 / 0.9565 GB, free: 6.609 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003125/0.8232, allocations: 333.6 kB / 0.9568 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.8232, allocations: 9.156 kB / 0.9568 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002427/0.8235, allocations: 24.22 kB / 0.9569 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.133e-05/0.8236, allocations: 164.4 kB / 0.957 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.8236, allocations: 1.688 kB / 0.957 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.589e-05/0.8236, allocations: 9.469 kB / 0.957 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001185/0.8237, allocations: 41.41 kB / 0.9571 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.8237, allocations: 192 / 0.9571 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.8238, allocations: 5.375 kB / 0.9571 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.8238, allocations: 0 / 0.9571 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.346e-05/0.8238, allocations: 17.42 kB / 0.9571 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001412/0.824, allocations: 153.6 kB / 0.9572 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001826/0.8258, allocations: 277.9 kB / 0.9575 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.087e-05/0.8259, allocations: 24.77 kB / 0.9575 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.58e-05/0.8259, allocations: 1.844 kB / 0.9575 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.713e-05/0.8259, allocations: 34.55 kB / 0.9576 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.633e-06/0.8259, allocations: 0 / 0.9576 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0001705/0.8261, allocations: 65.03 kB / 0.9576 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.983e-05/0.8261, allocations: 53.09 kB / 0.9577 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.068e-05/0.8262, allocations: 91.36 kB / 0.9578 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.082e-05/0.8262, allocations: 29.83 kB / 0.9578 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.384e-05/0.8262, allocations: 84.14 kB / 0.9579 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.97e-05/0.8262, allocations: 14.66 kB / 0.9579 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.935e-05/0.8263, allocations: 13.66 kB / 0.9579 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.984e-05/0.8263, allocations: 320.4 kB / 0.9582 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.077e-05/0.8264, allocations: 4.562 kB / 0.9582 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.769e-05/0.8264, allocations: 8.562 kB / 0.9582 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.454e-05/0.8264, allocations: 31.67 kB / 0.9582 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.8264, allocations: 1.562 kB / 0.9582 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.326e-05/0.8265, allocations: 51.86 kB / 0.9583 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.8265, allocations: 7.25 kB / 0.9583 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.8266, allocations: 7.875 kB / 0.9583 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.8266, allocations: 0 / 0.9583 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.63e-05/0.8266, allocations: 13.48 kB / 0.9583 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.283e-06/0.8266, allocations: 5.109 kB / 0.9583 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.89e-05/0.8267, allocations: 0 / 0.9583 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-06/0.8267, allocations: 5.562 kB / 0.9583 GB, free: 4.832 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 4.713e-05/0.8267, allocations: 107.4 kB / 0.9584 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.838e-06/0.8268, allocations: 5.469 kB / 0.9584 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.209e-05/0.8268, allocations: 12.5 kB / 0.9584 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.8268, allocations: 0 / 0.9584 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.8268, allocations: 1.125 kB / 0.9584 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.8268, allocations: 4 kB / 0.9585 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.18e-05/0.8269, allocations: 163.4 kB / 0.9586 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.8269, allocations: 0 / 0.9586 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.377e-05/0.827, allocations: 8.484 kB / 0.9586 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.827, allocations: 1.438 kB / 0.9586 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.827, allocations: 3.938 kB / 0.9586 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.827, allocations: 1.406 kB / 0.9586 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.827, allocations: 4 kB / 0.9586 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.928e-05/0.8271, allocations: 81.12 kB / 0.9587 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.435e-05/0.8271, allocations: 78.55 kB / 0.9588 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.307e-05/0.8272, allocations: 5.375 kB / 0.9588 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.282e-05/0.8272, allocations: 4.984 kB / 0.9588 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.342e-05/0.8272, allocations: 1.438 kB / 0.9588 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-06/0.8272, allocations: 5.406 kB / 0.9588 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.78e-05/0.8273, allocations: 84.84 kB / 0.9589 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8273, allocations: 0 / 0.9589 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001876/0.8275, allocations: 5.781 kB / 0.9589 GB, free: 4.211 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * 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 (4): * Single equations (assignments): 4 * 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 9.908e-05/0.8276, allocations: 95.62 kB / 0.959 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001038/0.8277, allocations: 26.36 kB / 0.959 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.8277, allocations: 1.781 kB / 0.959 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.063e-05/0.8277, allocations: 11.12 kB / 0.959 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002552/0.828, allocations: 17.45 kB / 0.959 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002964/0.8283, allocations: 142.5 kB / 0.9592 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001078/0.8284, allocations: 0.6731 MB / 0.9598 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.158e-05/0.8285, allocations: 10.52 kB / 0.9598 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.42e-05/0.8285, allocations: 8.719 kB / 0.9598 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of SimCode: time 3.51e-07/0.8285, allocations: 0 / 0.9598 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of Templates: time 0.002646/0.8311, allocations: 489.8 kB / 0.9603 GB, free: 2.992 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.makefile (rm -f Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.pipe ; mkfifo Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.pipe >> ../files/Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.sim & ./Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Psychrometrics_Functions_Examples_pW_X.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches