Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_latest_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.001131/0.001131, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.009359/0.00936, allocations: 172.7 kB / 16.26 MB, free: 6.613 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.397/1.397, 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 11.0.1-master/package.mo): time 2.718/2.718, allocations: 462.6 MB / 0.7364 GB, free: 324 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003312/0.0003312, allocations: 10.66 kB / 0.9028 GB, free: 36.65 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3525/0.3528, allocations: 159.6 MB / 1.059 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.001832/0.3547, allocations: 1.175 MB / 1.06 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008551/0.3556, allocations: 414.8 kB / 1.06 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.139e-05/0.3556, allocations: 0 / 1.06 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.034e-05/0.3557, allocations: 3.938 kB / 1.06 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.415e-05/0.3558, allocations: 4 kB / 1.06 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004632/0.3562, allocations: 75.84 kB / 1.06 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.46e-05/0.3563, allocations: 23.92 kB / 1.06 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.083e-05/0.3564, allocations: 4 kB / 1.06 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.831e-05/0.3564, allocations: 11.92 kB / 1.06 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.143e-05/0.3565, allocations: 7.938 kB / 1.06 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.861e-05/0.3565, allocations: 3.984 kB / 1.06 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004379/0.357, allocations: 283.6 kB / 1.061 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.947e-05/0.357, allocations: 4 kB / 1.061 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.016e-05/0.3571, allocations: 33.64 kB / 1.061 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003023/0.3574, allocations: 107.8 kB / 1.061 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3574, allocations: 0 / 1.061 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3574, allocations: 0 / 1.061 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.3574, allocations: 0 / 1.061 GB, free: 3.383 MB / 0.8106 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.0006047/0.358, allocations: 367.7 kB / 1.061 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.3581, allocations: 8.031 kB / 1.061 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.613e-05/0.3582, allocations: 4.844 kB / 1.061 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001373/0.3583, allocations: 168.4 kB / 1.061 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.807e-05/0.3583, allocations: 384 / 1.061 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.261e-05/0.3583, allocations: 384 / 1.061 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002091/0.3586, allocations: 62.22 kB / 1.061 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.3586, allocations: 192 / 1.061 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.3586, allocations: 7.938 kB / 1.061 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.3586, allocations: 0 / 1.061 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001976/0.3588, allocations: 47.89 kB / 1.061 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004217/0.3592, allocations: 252.9 kB / 1.062 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001506/0.3594, allocations: 46.53 kB / 1.062 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.3595, allocations: 32.84 kB / 1.062 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007404/0.3603, allocations: 465.5 kB / 1.062 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/0.3603, allocations: 34.56 kB / 1.062 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.573e-06/0.3603, allocations: 4 kB / 1.062 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0004569/0.3608, allocations: 101.5 kB / 1.062 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.672e-05/0.3608, allocations: 55.53 kB / 1.062 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.83e-05/0.3609, allocations: 109.8 kB / 1.062 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.361, allocations: 29.7 kB / 1.062 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.947e-05/0.361, allocations: 84.08 kB / 1.063 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.445e-05/0.361, allocations: 11.84 kB / 1.063 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.238e-05/0.3611, allocations: 9.719 kB / 1.063 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001142/0.3612, allocations: 314.8 kB / 1.063 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.407e-05/0.3613, allocations: 27.97 kB / 1.063 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.434e-05/0.3614, allocations: 19.98 kB / 1.063 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001693/0.3616, allocations: 52.83 kB / 1.063 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.3616, allocations: 0 / 1.063 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002275/0.3618, allocations: 85.59 kB / 1.063 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.3618, allocations: 4 kB / 1.063 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.3618, allocations: 32 / 1.063 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.578e-06/0.3619, allocations: 4 kB / 1.063 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.352e-05/0.3619, allocations: 11.98 kB / 1.063 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.362, allocations: 0 / 1.063 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.988e-05/0.362, allocations: 8 kB / 1.063 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.02e-06/0.362, allocations: 0 / 1.063 GB, free: 0.6836 MB / 0.8106 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.29e-05/0.3621, allocations: 119.3 kB / 1.063 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.184e-05/0.3622, allocations: 4 kB / 1.063 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002481/0.3624, allocations: 85.12 kB / 1.063 GB, free: 476 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.3624, allocations: 0 / 1.063 GB, free: 476 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3624, allocations: 4 kB / 1.063 GB, free: 472 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.3624, allocations: 0 / 1.063 GB, free: 472 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001576/0.3626, allocations: 169.5 kB / 1.063 GB, free: 252 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3626, allocations: 0 / 1.063 GB, free: 252 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.076e-05/0.3627, allocations: 15.98 kB / 1.063 GB, free: 236 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.3627, allocations: 0 / 1.063 GB, free: 236 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.3627, allocations: 7.938 kB / 1.063 GB, free: 228 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3627, allocations: 0 / 1.063 GB, free: 228 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3627, allocations: 0 / 1.063 GB, free: 228 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002694/0.363, allocations: 175.4 kB / 1.064 GB, free: 36 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.835e-05/0.3631, allocations: 81.11 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.402e-05/0.3631, allocations: 4 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.888e-05/0.3632, allocations: 7.984 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.815e-05/0.3632, allocations: 8.031 kB / 1.064 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-06/0.3632, allocations: 0 / 1.064 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.886e-05/0.3633, allocations: 79.28 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.3633, allocations: 0 / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002382/0.3635, allocations: 23.98 kB / 1.064 GB, free: 15.82 MB / 0.8262 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.0001601/0.3637, allocations: 103.2 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002293/0.3639, allocations: 51.95 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3639, allocations: 0 / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.542e-05/0.364, allocations: 31.92 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002668/0.3643, allocations: 8 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003159/0.3646, allocations: 120.6 kB / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002755/0.3649, allocations: 0.6809 MB / 1.065 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.615e-05/0.365, allocations: 0 / 1.065 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.958e-05/0.365, allocations: 7.438 kB / 1.065 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of SimCode: time 3.7e-07/0.365, allocations: 0 / 1.065 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of Templates: time 0.003173/0.3682, allocations: 0.6516 MB / 1.065 GB, free: 14.11 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches