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.001095/0.001095, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.001291/0.001291, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 223.2 MB / 239.9 MB, free: 5.438 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.501/2.501, allocations: 390.2 MB / 0.6653 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004144/0.0004144, allocations: 8 kB / 0.8145 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9301/0.9305, allocations: 142.3 MB / 0.9535 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.001611/0.9322, allocations: 1.148 MB / 0.9546 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006432/0.9328, allocations: 357.6 kB / 0.955 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.729e-05/0.9329, allocations: 1.438 kB / 0.955 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.757e-05/0.9329, allocations: 0 / 0.955 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.999e-05/0.933, allocations: 7.984 kB / 0.955 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003367/0.9333, allocations: 77.2 kB / 0.9551 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.036e-05/0.9334, allocations: 16.89 kB / 0.9551 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.26e-05/0.9335, allocations: 6.5 kB / 0.9551 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.491e-05/0.9335, allocations: 8.109 kB / 0.9551 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.343e-05/0.9336, allocations: 14.14 kB / 0.9551 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.518e-05/0.9336, allocations: 1.375 kB / 0.9551 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003632/0.934, allocations: 256.5 kB / 0.9553 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.015e-05/0.934, allocations: 1.406 kB / 0.9553 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.411e-05/0.934, allocations: 31.17 kB / 0.9554 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001325/0.9342, allocations: 66.56 kB / 0.9554 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.9342, allocations: 0 / 0.9554 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.713e-06/0.9342, allocations: 7.938 kB / 0.9554 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.9342, allocations: 0 / 0.9554 GB, free: 6.602 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.0004412/0.9346, allocations: 358.4 kB / 0.9558 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.9347, allocations: 8.625 kB / 0.9558 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.485e-05/0.9348, allocations: 6.078 kB / 0.9558 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.838e-05/0.9349, allocations: 180.8 kB / 0.956 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.9349, allocations: 9 kB / 0.956 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.127e-06/0.9349, allocations: 5.125 kB / 0.956 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001857/0.9351, allocations: 53.67 kB / 0.956 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.9351, allocations: 0 / 0.956 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.222e-05/0.9351, allocations: 1.25 kB / 0.956 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.9351, allocations: 0 / 0.956 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.9353, allocations: 48.7 kB / 0.9561 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003136/0.9357, allocations: 246.1 kB / 0.9563 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001296/0.9358, allocations: 52.7 kB / 0.9564 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006135/0.9364, allocations: 460.4 kB / 0.9568 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/0.9364, allocations: 35.72 kB / 0.9568 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.9365, allocations: 0 / 0.9568 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0004022/0.9369, allocations: 104.1 kB / 0.9569 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.917e-05/0.9369, allocations: 52.5 kB / 0.957 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.942e-05/0.937, allocations: 109.5 kB / 0.9571 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.458e-06/0.937, allocations: 25.7 kB / 0.9571 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.348e-05/0.937, allocations: 85.33 kB / 0.9572 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.603e-05/0.937, allocations: 5.094 kB / 0.9572 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.855e-06/0.937, allocations: 0 / 0.9572 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.865e-05/0.9371, allocations: 315.9 kB / 0.9575 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.372e-05/0.9372, allocations: 26.8 kB / 0.9575 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.283e-05/0.9373, allocations: 17.7 kB / 0.9576 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.644e-05/0.9374, allocations: 27.52 kB / 0.9576 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.9374, allocations: 0 / 0.9576 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000203/0.9376, allocations: 75.53 kB / 0.9577 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.9376, allocations: 8.562 kB / 0.9577 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.9376, allocations: 0 / 0.9577 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.9376, allocations: 9.047 kB / 0.9577 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.119e-05/0.9377, allocations: 11.95 kB / 0.9577 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.9377, allocations: 5.297 kB / 0.9577 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.806e-05/0.9378, allocations: 13.14 kB / 0.9577 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.9378, allocations: 1.469 kB / 0.9577 GB, free: 4.305 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.349e-05/0.9379, allocations: 112.5 kB / 0.9578 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.464e-05/0.9379, allocations: 5.188 kB / 0.9578 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002314/0.9381, allocations: 86.31 kB / 0.9579 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.9382, allocations: 4 kB / 0.9579 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.9382, allocations: 0 / 0.9579 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.9382, allocations: 5.078 kB / 0.9579 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001246/0.9383, allocations: 159.5 kB / 0.9581 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.9383, allocations: 4 kB / 0.9581 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.614e-05/0.9384, allocations: 12.45 kB / 0.9581 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.9384, allocations: 0 / 0.9581 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.9384, allocations: 1.188 kB / 0.9581 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.9384, allocations: 3.938 kB / 0.9581 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.9384, allocations: 1.188 kB / 0.9581 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002277/0.9386, allocations: 181.3 kB / 0.9582 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.488e-05/0.9387, allocations: 82.39 kB / 0.9583 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.456e-05/0.9387, allocations: 1.5 kB / 0.9583 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.2e-05/0.9388, allocations: 10.23 kB / 0.9583 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.239e-05/0.9388, allocations: 4.031 kB / 0.9583 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.9388, allocations: 1.406 kB / 0.9583 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.453e-05/0.9389, allocations: 88.61 kB / 0.9584 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.9389, allocations: 0 / 0.9584 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002255/0.9391, allocations: 15.06 kB / 0.9584 GB, free: 3.551 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001956/0.9393, allocations: 108.7 kB / 0.9585 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002273/0.9395, allocations: 54.7 kB / 0.9586 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.9395, allocations: 4 kB / 0.9586 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.483e-05/0.9396, allocations: 21.27 kB / 0.9586 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002028/0.9398, allocations: 3.531 kB / 0.9586 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002691/0.9401, allocations: 121.4 kB / 0.9587 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001354/0.9403, allocations: 0.6783 MB / 0.9594 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.343e-05/0.9403, allocations: 2.5 kB / 0.9594 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.57e-05/0.9403, allocations: 7.438 kB / 0.9594 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of SimCode: time 3.81e-07/0.9403, allocations: 1.656 kB / 0.9594 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of Templates: time 0.002884/0.9432, allocations: 0.6303 MB / 0.96 GB, free: 2.266 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","../files/Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches