Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.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.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 108.6 kB / 16.41 MB, free: 6.504 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.00148/0.00148, allocations: 188 kB / 17.34 MB, free: 5.738 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.318/1.318, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.398/2.398, allocations: 437.1 MB / 0.7112 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 59.91 kB / 1.019 GB, free: 9.402 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7397/0.7415, allocations: 151.6 MB / 1.167 GB, free: 3.824 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002437/0.744, allocations: 1.444 MB / 1.169 GB, free: 2.371 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0007296/0.7448, allocations: 389.9 kB / 1.169 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.334e-05/0.7448, allocations: 0 / 1.169 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.074e-05/0.7448, allocations: 3.984 kB / 1.169 GB, free: 1.984 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.327e-05/0.7449, allocations: 7.938 kB / 1.169 GB, free: 1.977 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004286/0.7453, allocations: 121.9 kB / 1.169 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 8.574e-05/0.7454, allocations: 19.98 kB / 1.169 GB, free: 1.84 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 7.699e-05/0.7455, allocations: 4 kB / 1.169 GB, free: 1.836 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 3.847e-05/0.7455, allocations: 11.94 kB / 1.169 GB, free: 1.824 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 3.609e-05/0.7456, allocations: 7.984 kB / 1.169 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.276e-05/0.7456, allocations: 3.938 kB / 1.169 GB, free: 1.812 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004051/0.746, allocations: 283.6 kB / 1.17 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.609e-05/0.746, allocations: 7.984 kB / 1.17 GB, free: 1.527 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.384e-05/0.7461, allocations: 11.94 kB / 1.17 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002115/0.7463, allocations: 116.2 kB / 1.17 GB, free: 1.406 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.7463, allocations: 0 / 1.17 GB, free: 1.406 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.473e-06/0.7463, allocations: 0 / 1.17 GB, free: 1.406 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.441e-06/0.7463, allocations: 0 / 1.17 GB, free: 1.406 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005211/0.7468, allocations: 367.1 kB / 1.17 GB, free: 0.9961 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.7469, allocations: 8.922 kB / 1.17 GB, free: 0.9883 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.143e-05/0.7469, allocations: 4.938 kB / 1.17 GB, free: 0.9844 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000154/0.7471, allocations: 164.3 kB / 1.17 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.073e-06/0.7471, allocations: 4.375 kB / 1.17 GB, free: 0.7812 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.352e-05/0.7471, allocations: 4.375 kB / 1.17 GB, free: 0.7773 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000166/0.7473, allocations: 46.23 kB / 1.17 GB, free: 0.7266 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.7473, allocations: 4.188 kB / 1.17 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.7473, allocations: 3.938 kB / 1.17 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.7473, allocations: 0 / 1.17 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001635/0.7475, allocations: 43.89 kB / 1.17 GB, free: 0.6758 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003543/0.7479, allocations: 248.9 kB / 1.171 GB, free: 392 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001263/0.748, allocations: 42.48 kB / 1.171 GB, free: 340 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.375e-05/0.7481, allocations: 24.91 kB / 1.171 GB, free: 312 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007053/0.7488, allocations: 457.5 kB / 1.171 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.7488, allocations: 38.5 kB / 1.171 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.7489, allocations: 3.938 kB / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2): time 0.0003573/0.7492, allocations: 89.58 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.7493, allocations: 55.34 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.882e-05/0.7494, allocations: 105.8 kB / 1.171 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.7494, allocations: 25.7 kB / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.12e-05/0.7494, allocations: 88.12 kB / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.749e-05/0.7495, allocations: 7.953 kB / 1.171 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.866e-05/0.7495, allocations: 9.719 kB / 1.171 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.7496, allocations: 319 kB / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.061e-05/0.7497, allocations: 19.97 kB / 1.172 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.899e-05/0.7498, allocations: 16.23 kB / 1.172 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001427/0.7499, allocations: 40.77 kB / 1.172 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.75, allocations: 4 kB / 1.172 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002019/0.7502, allocations: 77.66 kB / 1.172 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.7502, allocations: 8 kB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.7502, allocations: 0 / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.7502, allocations: 0 / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.282e-05/0.7503, allocations: 7.984 kB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.499e-06/0.7503, allocations: 0 / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.29e-05/0.7503, allocations: 7.953 kB / 1.172 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.7504, allocations: 7.984 kB / 1.172 GB, free: 14.78 MB / 0.9044 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 (2): * Single equations (assignments): 2 * 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 8.233e-05/0.7504, allocations: 113.8 kB / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.335e-05/0.7505, allocations: 0 / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002169/0.7507, allocations: 77.12 kB / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.7507, allocations: 0 / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.7507, allocations: 0 / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-06/0.7507, allocations: 4 kB / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002006/0.7509, allocations: 161.6 kB / 1.172 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.7509, allocations: 4.031 kB / 1.172 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.343e-05/0.751, allocations: 11.98 kB / 1.172 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.751, allocations: 0 / 1.172 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.721e-06/0.751, allocations: 0 / 1.172 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.751, allocations: 0 / 1.172 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.751, allocations: 0 / 1.172 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003138/0.7513, allocations: 171.4 kB / 1.172 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.38e-05/0.7514, allocations: 85.06 kB / 1.173 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.179e-05/0.7514, allocations: 0 / 1.173 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.156e-05/0.7515, allocations: 7.984 kB / 1.173 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.356e-05/0.7515, allocations: 7.938 kB / 1.173 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-06/0.7515, allocations: 0 / 1.173 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001021/0.7516, allocations: 79.28 kB / 1.173 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7517, allocations: 0 / 1.173 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002192/0.7519, allocations: 23.92 kB / 1.173 GB, free: 13.95 MB / 0.9044 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 (2): * Single equations (assignments): 2 * 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.000156/0.752, allocations: 115.2 kB / 1.173 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002047/0.7523, allocations: 35.95 kB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.7523, allocations: 0 / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 8.46e-05/0.7524, allocations: 23.92 kB / 1.173 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002399/0.7526, allocations: 7.938 kB / 1.173 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002536/0.7529, allocations: 117.5 kB / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002947/0.7532, allocations: 0.6768 MB / 1.174 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.269e-05/0.7532, allocations: 4 kB / 1.174 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.984e-05/0.7532, allocations: 7.438 kB / 1.174 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of SimCode: time 3e-07/0.7532, allocations: 0 / 1.174 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of Templates: time 0.003119/0.7564, allocations: 0.7249 MB / 1.174 GB, free: 12.18 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches