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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001026/0.001026, allocations: 92.23 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.001336/0.001336, allocations: 181.4 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.417/1.417, allocations: 223.3 MB / 241 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.822/2.822, allocations: 462.6 MB / 0.7371 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003602, allocations: 10.03 kB / 0.9034 GB, free: 36.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3213/0.3217, allocations: 159.6 MB / 1.059 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.001665/0.3234, allocations: 1.163 MB / 1.06 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007849/0.3242, allocations: 406.8 kB / 1.061 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.503e-05/0.3243, allocations: 0 / 1.061 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.848e-05/0.3243, allocations: 0 / 1.061 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.281e-05/0.3243, allocations: 3.938 kB / 1.061 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003836/0.3247, allocations: 83.09 kB / 1.061 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.132e-05/0.3248, allocations: 27.92 kB / 1.061 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.398e-05/0.3249, allocations: 7.984 kB / 1.061 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.77e-05/0.3249, allocations: 7.922 kB / 1.061 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.98e-05/0.325, allocations: 11.94 kB / 1.061 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.375e-05/0.325, allocations: 4 kB / 1.061 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003818/0.3254, allocations: 275.6 kB / 1.061 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.49e-05/0.3254, allocations: 4 kB / 1.061 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.344e-05/0.3255, allocations: 33.64 kB / 1.061 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001419/0.3256, allocations: 75.86 kB / 1.061 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3256, allocations: 4 kB / 1.061 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3256, allocations: 0 / 1.061 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.597e-06/0.3256, allocations: 0 / 1.061 GB, free: 2.867 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.0004652/0.3261, allocations: 363.7 kB / 1.062 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.3262, allocations: 11.97 kB / 1.062 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.522e-05/0.3262, allocations: 4.844 kB / 1.062 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.3263, allocations: 164.4 kB / 1.062 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.3264, allocations: 12.31 kB / 1.062 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.204e-05/0.3264, allocations: 384 / 1.062 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001847/0.3266, allocations: 62.17 kB / 1.062 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.3266, allocations: 192 / 1.062 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.3266, allocations: 3.938 kB / 1.062 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.3266, allocations: 0 / 1.062 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001833/0.3268, allocations: 47.95 kB / 1.062 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003332/0.3271, allocations: 240.9 kB / 1.062 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001355/0.3273, allocations: 58.47 kB / 1.062 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.776e-05/0.3274, allocations: 28.91 kB / 1.062 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000674/0.3281, allocations: 461.5 kB / 1.063 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.3281, allocations: 38.56 kB / 1.063 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.292e-06/0.3281, allocations: 0 / 1.063 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003907/0.3285, allocations: 97.55 kB / 1.063 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/0.3286, allocations: 59.41 kB / 1.063 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.318e-05/0.3286, allocations: 105.8 kB / 1.063 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.3287, allocations: 33.64 kB / 1.063 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.425e-05/0.3287, allocations: 84.27 kB / 1.063 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.962e-05/0.3287, allocations: 7.844 kB / 1.063 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.527e-05/0.3288, allocations: 13.72 kB / 1.063 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.3289, allocations: 314.8 kB / 1.063 GB, free: 400 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.29e-05/0.329, allocations: 23.97 kB / 1.063 GB, free: 376 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.436e-05/0.3291, allocations: 23.98 kB / 1.064 GB, free: 352 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001678/0.3293, allocations: 44.83 kB / 1.064 GB, free: 304 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3293, allocations: 0 / 1.064 GB, free: 304 kB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002427/0.3295, allocations: 89.66 kB / 1.064 GB, free: 208 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.3295, allocations: 4 kB / 1.064 GB, free: 204 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.3296, allocations: 0 / 1.064 GB, free: 204 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.3296, allocations: 0 / 1.064 GB, free: 204 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.006e-05/0.3297, allocations: 15.92 kB / 1.064 GB, free: 188 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.3297, allocations: 4.031 kB / 1.064 GB, free: 184 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.057e-05/0.3297, allocations: 11.94 kB / 1.064 GB, free: 172 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.059e-06/0.3297, allocations: 0 / 1.064 GB, free: 172 kB / 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 7.425e-05/0.3298, allocations: 117.8 kB / 1.064 GB, free: 44 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.791e-05/0.3299, allocations: 3.938 kB / 1.064 GB, free: 40 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002751/0.3302, allocations: 85.19 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.3302, allocations: 0 / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.3302, allocations: 4 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.3302, allocations: 0 / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001603/0.3303, allocations: 165.5 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3304, allocations: 0 / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.235e-05/0.3304, allocations: 11.98 kB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.3304, allocations: 4.031 kB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.3304, allocations: 7.938 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3305, allocations: 4 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.3305, allocations: 0 / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002696/0.3307, allocations: 171.5 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.567e-05/0.3308, allocations: 81.11 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.188e-05/0.3308, allocations: 0 / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.072e-05/0.3309, allocations: 11.98 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.732e-05/0.3309, allocations: 7.984 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.3309, allocations: 0 / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.669e-05/0.331, allocations: 79.28 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.41e-07/0.331, allocations: 4.031 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002373/0.3312, allocations: 23.98 kB / 1.064 GB, free: 15.3 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.0001714/0.3314, allocations: 103.2 kB / 1.065 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002248/0.3317, allocations: 55.89 kB / 1.065 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3317, allocations: 0 / 1.065 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.677e-05/0.3318, allocations: 27.98 kB / 1.065 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/0.332, allocations: 9.469 kB / 1.065 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002765/0.3323, allocations: 154.3 kB / 1.065 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/0.3326, allocations: 0.6809 MB / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.192e-05/0.3326, allocations: 7.438 kB / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of SimCode: time 4.61e-07/0.3326, allocations: 0 / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of Templates: time 0.002003/0.3346, allocations: 0.6957 MB / 1.066 GB, free: 13.51 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches