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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001691/0.001691, allocations: 109.8 kB / 15.99 MB, free: 6.359 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.001875/0.001875, allocations: 191.2 kB / 16.91 MB, free: 6.195 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.465/1.465, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.831/2.831, allocations: 482.4 MB / 0.755 GB, free: 7.18 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 68.22 kB / 0.924 GB, free: 344 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8201/0.8221, allocations: 162.2 MB / 1.082 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.00329/0.8254, allocations: 1.504 MB / 1.084 GB, free: 0.5742 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007227/0.8262, allocations: 385.2 kB / 1.084 GB, free: 328 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.74e-05/0.8262, allocations: 0.5312 kB / 1.084 GB, free: 328 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.134e-05/0.8263, allocations: 0 / 1.084 GB, free: 328 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.245e-05/0.8263, allocations: 9.281 kB / 1.084 GB, free: 320 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004708/0.8268, allocations: 97.16 kB / 1.084 GB, free: 288 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.767e-05/0.8269, allocations: 30.56 kB / 1.084 GB, free: 272 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.491e-05/0.827, allocations: 7.75 kB / 1.084 GB, free: 268 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.489e-05/0.827, allocations: 9.125 kB / 1.084 GB, free: 264 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.229e-05/0.8271, allocations: 14.83 kB / 1.084 GB, free: 256 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.575e-05/0.8271, allocations: 2.219 kB / 1.084 GB, free: 256 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004387/0.8275, allocations: 274.4 kB / 1.085 GB, free: 188 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.347e-05/0.8276, allocations: 2.016 kB / 1.085 GB, free: 188 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.94e-05/0.8276, allocations: 11.19 kB / 1.085 GB, free: 180 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001647/0.8278, allocations: 74.06 kB / 1.085 GB, free: 156 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.8278, allocations: 1.25 kB / 1.085 GB, free: 156 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.543e-06/0.8278, allocations: 0 / 1.085 GB, free: 156 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.202e-06/0.8278, allocations: 4 kB / 1.085 GB, free: 152 kB / 0.8262 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.0005324/0.8283, allocations: 367.6 kB / 1.085 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.8284, allocations: 10.09 kB / 1.085 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.728e-05/0.8285, allocations: 2.188 kB / 1.085 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001671/0.8286, allocations: 176.3 kB / 1.085 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.754e-06/0.8286, allocations: 384 / 1.085 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.353e-05/0.8287, allocations: 1.469 kB / 1.085 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001968/0.8289, allocations: 54.83 kB / 1.085 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.8289, allocations: 192 / 1.085 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.257e-05/0.8289, allocations: 3.938 kB / 1.085 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.8289, allocations: 1.031 kB / 1.085 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000172/0.8291, allocations: 33.58 kB / 1.085 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003782/0.8295, allocations: 248.1 kB / 1.086 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001457/0.8296, allocations: 49.78 kB / 1.086 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.341e-05/0.8297, allocations: 24.19 kB / 1.086 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007824/0.8305, allocations: 462.1 kB / 1.086 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.767e-05/0.8306, allocations: 33.02 kB / 1.086 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.8306, allocations: 0 / 1.086 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0004126/0.831, allocations: 81.8 kB / 1.086 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/0.8311, allocations: 60.03 kB / 1.086 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.8312, allocations: 104.2 kB / 1.086 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.8312, allocations: 25.7 kB / 1.086 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.696e-05/0.8313, allocations: 82.92 kB / 1.087 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.044e-05/0.8313, allocations: 9.062 kB / 1.087 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.678e-05/0.8313, allocations: 13.3 kB / 1.087 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001767/0.8315, allocations: 313.7 kB / 1.087 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.919e-05/0.8316, allocations: 17.8 kB / 1.087 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.661e-05/0.8317, allocations: 19.59 kB / 1.087 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001548/0.8318, allocations: 41.7 kB / 1.087 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.8319, allocations: 0 / 1.087 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002217/0.8321, allocations: 75.83 kB / 1.087 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.8321, allocations: 10.19 kB / 1.087 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.8321, allocations: 0 / 1.087 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.8321, allocations: 0.7188 kB / 1.087 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.865e-05/0.8322, allocations: 8.312 kB / 1.087 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.8323, allocations: 6.312 kB / 1.087 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.774e-05/0.8323, allocations: 5.766 kB / 1.087 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.406e-06/0.8323, allocations: 3.984 kB / 1.087 GB, free: 13.93 MB / 0.8419 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 0.0001003/0.8324, allocations: 116.2 kB / 1.087 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.639e-05/0.8325, allocations: 6.484 kB / 1.087 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002449/0.8327, allocations: 70.06 kB / 1.087 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.8327, allocations: 0 / 1.087 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.8327, allocations: 1.469 kB / 1.087 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.8327, allocations: 0.9844 kB / 1.087 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000201/0.833, allocations: 168.2 kB / 1.087 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.833, allocations: 0.5312 kB / 1.087 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.006e-05/0.833, allocations: 13.31 kB / 1.087 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.833, allocations: 4.875 kB / 1.087 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.8331, allocations: 0.7969 kB / 1.087 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.8331, allocations: 1.656 kB / 1.087 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.8331, allocations: 0 / 1.087 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002777/0.8334, allocations: 162.9 kB / 1.088 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.202e-05/0.8334, allocations: 87.89 kB / 1.088 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.451e-05/0.8334, allocations: 4.875 kB / 1.088 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.415e-05/0.8335, allocations: 9.891 kB / 1.088 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.145e-05/0.8336, allocations: 2.141 kB / 1.088 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.289e-06/0.8336, allocations: 2.078 kB / 1.088 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.665e-05/0.8336, allocations: 86.17 kB / 1.088 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.3e-07/0.8336, allocations: 0 / 1.088 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002395/0.8339, allocations: 16.75 kB / 1.088 GB, free: 13.23 MB / 0.8419 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.0001986/0.8341, allocations: 109.7 kB / 1.088 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002294/0.8343, allocations: 40.16 kB / 1.088 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.8344, allocations: 0.9375 kB / 1.088 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 8.586e-05/0.8344, allocations: 19.91 kB / 1.088 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003323/0.8348, allocations: 11.31 kB / 1.088 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003344/0.8351, allocations: 148.6 kB / 1.088 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000356/0.8355, allocations: 0.6767 MB / 1.089 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.376e-05/0.8355, allocations: 8.938 kB / 1.089 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of SimCode: time 5.32e-06/0.8355, allocations: 1.125 kB / 1.089 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of Templates: time 0.00266/0.8382, allocations: 0.7053 MB / 1.089 GB, free: 12.21 MB / 0.8419 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=400 -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