Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.Utilities.Psychrometrics.Functions.Examples.pW_X,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|X|XInv|p_w|dX",fileNamePrefix="Buildings_10_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_10_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.0009707/0.000971, allocations: 92.31 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 182.7 kB / 16.92 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.382/1.382, allocations: 223.3 MB / 241 MB, free: 5.211 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.693/2.693, allocations: 437.8 MB / 0.7128 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000357/0.000357, allocations: 8 kB / 0.8735 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8228/0.8232, allocations: 153.8 MB / 1.024 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X): time 0.001343/0.8246, allocations: 0.984 MB / 1.025 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0005894/0.8252, allocations: 299.1 kB / 1.025 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.409e-05/0.8252, allocations: 0 / 1.025 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.316e-05/0.8253, allocations: 0 / 1.025 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.003e-05/0.8253, allocations: 7.984 kB / 1.025 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002465/0.8256, allocations: 43.75 kB / 1.025 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.389e-05/0.8256, allocations: 19.88 kB / 1.025 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.072e-05/0.8257, allocations: 0 / 1.025 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.611e-05/0.8257, allocations: 4 kB / 1.025 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.317e-05/0.8258, allocations: 11.97 kB / 1.025 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.248e-05/0.8258, allocations: 0 / 1.025 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001176/0.8259, allocations: 59.95 kB / 1.025 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.458e-05/0.8259, allocations: 7.938 kB / 1.025 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.374e-05/0.826, allocations: 33.7 kB / 1.025 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 9.598e-05/0.8261, allocations: 29.94 kB / 1.025 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.8261, allocations: 0 / 1.025 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.354e-06/0.8261, allocations: 0 / 1.025 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.498e-06/0.8261, allocations: 0 / 1.025 GB, free: 14.34 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003697/0.8265, allocations: 339.4 kB / 1.025 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.8265, allocations: 12.03 kB / 1.025 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000211/0.8268, allocations: 16.86 kB / 1.026 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001075/0.8269, allocations: 172.4 kB / 1.026 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.8269, allocations: 384 / 1.026 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.686e-06/0.8269, allocations: 4.312 kB / 1.026 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001094/0.827, allocations: 46.25 kB / 1.026 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.827, allocations: 192 / 1.026 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.8271, allocations: 3.938 kB / 1.026 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.8271, allocations: 0 / 1.026 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.714e-05/0.8271, allocations: 19.98 kB / 1.026 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001516/0.8273, allocations: 153.7 kB / 1.026 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001762/0.8291, allocations: 274.4 kB / 1.026 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.218e-05/0.8291, allocations: 24.84 kB / 1.026 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.05e-05/0.8291, allocations: 4 kB / 1.026 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.054e-05/0.8291, allocations: 30.56 kB / 1.026 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.8292, allocations: 0 / 1.026 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.00016/0.8293, allocations: 69.61 kB / 1.026 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.288e-05/0.8294, allocations: 51.41 kB / 1.026 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.02e-05/0.8294, allocations: 93.84 kB / 1.026 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.703e-05/0.8295, allocations: 33.83 kB / 1.026 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.721e-05/0.8295, allocations: 84.14 kB / 1.027 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.794e-05/0.8295, allocations: 15.69 kB / 1.027 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.445e-05/0.8295, allocations: 9.719 kB / 1.027 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.1e-05/0.8296, allocations: 318.8 kB / 1.027 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.978e-05/0.8297, allocations: 7.984 kB / 1.027 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.662e-05/0.8297, allocations: 8 kB / 1.027 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.147e-05/0.8297, allocations: 24.86 kB / 1.027 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.8298, allocations: 0 / 1.027 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.541e-05/0.8298, allocations: 57.69 kB / 1.027 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.8299, allocations: 5.875 kB / 1.027 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.8299, allocations: 3.938 kB / 1.027 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.118e-05/0.8299, allocations: 0 / 1.027 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.327e-05/0.8299, allocations: 7.938 kB / 1.027 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/0.83, allocations: 4 kB / 1.027 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.915e-05/0.83, allocations: 0 / 1.027 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-06/0.83, allocations: 7.922 kB / 1.027 GB, free: 12.25 MB / 0.7794 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 6.879e-05/0.8301, allocations: 113.8 kB / 1.027 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.448e-06/0.8301, allocations: 7.906 kB / 1.027 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.131e-05/0.8301, allocations: 11.44 kB / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.8301, allocations: 0 / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.8301, allocations: 0 / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.8301, allocations: 3.938 kB / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001052/0.8303, allocations: 157.7 kB / 1.027 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.8303, allocations: 4 kB / 1.027 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.197e-05/0.8303, allocations: 4 kB / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.8303, allocations: 0 / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.8303, allocations: 3.938 kB / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.8303, allocations: 0 / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.8303, allocations: 8 kB / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001154/0.8305, allocations: 85.05 kB / 1.027 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.882e-05/0.8305, allocations: 77.11 kB / 1.027 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.8305, allocations: 3.938 kB / 1.027 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.355e-05/0.8306, allocations: 4 kB / 1.027 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.207e-05/0.8306, allocations: 0 / 1.027 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.191e-06/0.8306, allocations: 3.984 kB / 1.027 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.162e-05/0.8307, allocations: 83.28 kB / 1.028 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8307, allocations: 0 / 1.028 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001749/0.8309, allocations: 8 kB / 1.028 GB, free: 11.59 MB / 0.7794 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 0.0001032/0.831, allocations: 99.23 kB / 1.028 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 8.182e-05/0.8311, allocations: 23.98 kB / 1.028 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.8311, allocations: 0 / 1.028 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.433e-05/0.8311, allocations: 16.41 kB / 1.028 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002309/0.8313, allocations: 21.45 kB / 1.028 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002974/0.8316, allocations: 166.2 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002328/0.8319, allocations: 0.6731 MB / 1.028 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.301e-05/0.8319, allocations: 11.44 kB / 1.029 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of SimCode: time 3.8e-07/0.8319, allocations: 0 / 1.029 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of Templates: time 0.001622/0.8335, allocations: 0.527 MB / 1.029 GB, free: 9.988 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.makefile (rm -f Buildings_10_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.pipe ; mkfifo Buildings_10_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.pipe >> ../files/Buildings_10_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.sim & ./Buildings_10_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Psychrometrics_Functions_Examples_pW_X.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Psychrometrics.Functions.Examples.pW_X.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches