Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings.Utilities.Math.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_9_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.001169/0.001169, allocations: 100.1 kB / 15.88 MB, free: 12 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.001193/0.001194, allocations: 197 kB / 16.79 MB, free: 6.809 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.401/1.401, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.596/2.596, allocations: 390.2 MB / 0.6649 GB, free: 0.6484 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 63.89 kB / 0.8125 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6434/0.645, allocations: 140.4 MB / 0.9496 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002373/0.6474, allocations: 1.495 MB / 0.951 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006634/0.6481, allocations: 422.8 kB / 0.9514 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.341e-05/0.6481, allocations: 0 / 0.9514 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.939e-05/0.6481, allocations: 0 / 0.9514 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.096e-05/0.6482, allocations: 5.312 kB / 0.9515 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003167/0.6485, allocations: 72.59 kB / 0.9515 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.504e-05/0.6486, allocations: 25.55 kB / 0.9515 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.931e-05/0.6487, allocations: 2.75 kB / 0.9515 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.11e-05/0.6487, allocations: 19.98 kB / 0.9516 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.323e-05/0.6488, allocations: 6.734 kB / 0.9516 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.28e-05/0.6488, allocations: 2.75 kB / 0.9516 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003235/0.6491, allocations: 274.6 kB / 0.9518 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.24e-05/0.6491, allocations: 11.94 kB / 0.9518 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.278e-05/0.6492, allocations: 14.69 kB / 0.9519 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001282/0.6493, allocations: 62.83 kB / 0.9519 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.6493, allocations: 4 kB / 0.9519 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.192e-06/0.6493, allocations: 0 / 0.9519 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.727e-06/0.6493, allocations: 1.25 kB / 0.9519 GB, free: 7.426 MB / 0.7169 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.0004016/0.6497, allocations: 365 kB / 0.9523 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.6498, allocations: 9.5 kB / 0.9523 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.006e-05/0.6498, allocations: 6.031 kB / 0.9523 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.339e-05/0.6499, allocations: 171 kB / 0.9525 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.6499, allocations: 384 / 0.9525 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.159e-05/0.6499, allocations: 1.688 kB / 0.9525 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001707/0.6501, allocations: 50.05 kB / 0.9525 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.6501, allocations: 4.125 kB / 0.9525 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.6501, allocations: 5.125 kB / 0.9525 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.6502, allocations: 0 / 0.9525 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001587/0.6503, allocations: 34.98 kB / 0.9525 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002622/0.6506, allocations: 254.9 kB / 0.9528 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001202/0.6507, allocations: 43.36 kB / 0.9528 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.436e-05/0.6508, allocations: 19.5 kB / 0.9528 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006143/0.6514, allocations: 467.3 kB / 0.9533 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.814e-05/0.6515, allocations: 35.53 kB / 0.9533 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.203e-06/0.6515, allocations: 1.094 kB / 0.9533 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003552/0.6518, allocations: 89.3 kB / 0.9534 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.525e-05/0.6519, allocations: 53.19 kB / 0.9535 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.078e-05/0.6519, allocations: 104.8 kB / 0.9536 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.244e-06/0.6519, allocations: 25.7 kB / 0.9536 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.466e-05/0.652, allocations: 85.73 kB / 0.9537 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.575e-05/0.652, allocations: 5.281 kB / 0.9537 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.853e-05/0.652, allocations: 16.03 kB / 0.9537 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.554e-05/0.6521, allocations: 320 kB / 0.954 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.776e-05/0.6521, allocations: 12.58 kB / 0.954 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.054e-05/0.6522, allocations: 21.95 kB / 0.954 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001361/0.6524, allocations: 40 kB / 0.9541 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.6524, allocations: 5.188 kB / 0.9541 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001836/0.6526, allocations: 65.42 kB / 0.9541 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.6526, allocations: 5.219 kB / 0.9541 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.6526, allocations: 0 / 0.9541 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.6526, allocations: 3.938 kB / 0.9541 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.161e-05/0.6527, allocations: 11.2 kB / 0.9542 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.6527, allocations: 0 / 0.9542 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.785e-05/0.6528, allocations: 11.7 kB / 0.9542 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-06/0.6528, allocations: 1.375 kB / 0.9542 GB, free: 5.082 MB / 0.7169 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 5.304e-05/0.6528, allocations: 115.3 kB / 0.9543 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.576e-05/0.6529, allocations: 5.5 kB / 0.9543 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002149/0.6531, allocations: 76.58 kB / 0.9544 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.6531, allocations: 0 / 0.9544 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.6531, allocations: 1.281 kB / 0.9544 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.6531, allocations: 8.016 kB / 0.9544 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000116/0.6532, allocations: 158.6 kB / 0.9545 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.6532, allocations: 5.25 kB / 0.9545 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.456e-05/0.6533, allocations: 9.266 kB / 0.9545 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.6533, allocations: 1.406 kB / 0.9545 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.803e-06/0.6533, allocations: 0 / 0.9545 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.6533, allocations: 1.469 kB / 0.9545 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.6533, allocations: 0 / 0.9545 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002108/0.6535, allocations: 180.2 kB / 0.9547 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.942e-05/0.6536, allocations: 77.11 kB / 0.9548 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.6536, allocations: 1.906 kB / 0.9548 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.202e-05/0.6537, allocations: 7.234 kB / 0.9548 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.502e-05/0.6537, allocations: 1.281 kB / 0.9548 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.6537, allocations: 1.625 kB / 0.9548 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.562e-05/0.6537, allocations: 87.92 kB / 0.9549 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6538, allocations: 4.031 kB / 0.9549 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002295/0.654, allocations: 11.62 kB / 0.9549 GB, free: 4.328 MB / 0.7169 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.0001566/0.6542, allocations: 112 kB / 0.955 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002143/0.6544, allocations: 37.45 kB / 0.955 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.6544, allocations: 1.156 kB / 0.955 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.181e-05/0.6545, allocations: 27.27 kB / 0.9551 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002526/0.6547, allocations: 6.281 kB / 0.9551 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002613/0.655, allocations: 146 kB / 0.9552 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001031/0.6551, allocations: 0.678 MB / 0.9559 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.173e-05/0.6551, allocations: 8.844 kB / 0.9559 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of SimCode: time 2.91e-07/0.6551, allocations: 0 / 0.9559 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of Templates: time 0.002144/0.6573, allocations: 0.6996 MB / 0.9566 GB, free: 2.984 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches