Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.355/1.355, allocations: 251.9 MB / 266.9 MB, free: 11 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001033/0.001033, allocations: 181.5 kB / 326.5 MB, free: 2.242 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.785/1.785, allocations: 205.4 MB / 0.5775 GB, free: 20.29 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008195/0.0008194, allocations: 82.42 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003309/0.0003309, allocations: 8.75 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2331/0.2334, allocations: 106.3 MB / 0.9001 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1767/0.4102, allocations: 132.3 MB / 1.029 GB, free: 11.46 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002268/0.4105, allocations: 67.97 kB / 1.029 GB, free: 11.39 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01298/0.4235, allocations: 4.32 MB / 1.034 GB, free: 7.062 MB / 0.6823 GB Notification: Performance of FrontEnd: time 4.999e-06/0.4235, allocations: 3.984 kB / 1.034 GB, free: 7.059 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.725e-06/0.4235, allocations: 8 kB / 1.034 GB, free: 7.051 MB / 0.6823 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.0004456/0.424, allocations: 369.1 kB / 1.034 GB, free: 6.645 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.424, allocations: 8.031 kB / 1.034 GB, free: 6.637 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.167e-05/0.4241, allocations: 11.84 kB / 1.034 GB, free: 6.625 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.4242, allocations: 167 kB / 1.034 GB, free: 6.422 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.648e-06/0.4243, allocations: 0 / 1.034 GB, free: 6.422 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.329e-05/0.4243, allocations: 4 kB / 1.034 GB, free: 6.418 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001696/0.4245, allocations: 53.69 kB / 1.034 GB, free: 6.359 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.4245, allocations: 3.984 kB / 1.034 GB, free: 6.355 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.4245, allocations: 0 / 1.034 GB, free: 6.355 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.4245, allocations: 7.922 kB / 1.034 GB, free: 6.348 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001663/0.4247, allocations: 47.97 kB / 1.034 GB, free: 6.301 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004257/0.4251, allocations: 268.8 kB / 1.034 GB, free: 5.988 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/0.4252, allocations: 46.56 kB / 1.035 GB, free: 5.934 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006043/0.4259, allocations: 461.5 kB / 1.035 GB, free: 5.391 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.01e-05/0.4259, allocations: 34.56 kB / 1.035 GB, free: 5.348 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.4259, allocations: 0 / 1.035 GB, free: 5.348 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2): time 0.0003829/0.4263, allocations: 101.7 kB / 1.035 GB, free: 5.242 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.975e-05/0.4263, allocations: 55.41 kB / 1.035 GB, free: 5.176 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.566e-05/0.4264, allocations: 92.98 kB / 1.035 GB, free: 5.078 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.4264, allocations: 29.7 kB / 1.035 GB, free: 5.043 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.424e-05/0.4265, allocations: 84.14 kB / 1.035 GB, free: 4.957 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.703e-05/0.4265, allocations: 7.844 kB / 1.035 GB, free: 4.949 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.236e-06/0.4265, allocations: 0 / 1.035 GB, free: 4.949 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.4266, allocations: 326.8 kB / 1.036 GB, free: 4.621 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.254e-05/0.4267, allocations: 23.92 kB / 1.036 GB, free: 4.598 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.007e-05/0.4268, allocations: 19.98 kB / 1.036 GB, free: 4.578 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.391e-05/0.4269, allocations: 24.05 kB / 1.036 GB, free: 4.555 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4269, allocations: 0 / 1.036 GB, free: 4.555 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002122/0.4271, allocations: 85.56 kB / 1.036 GB, free: 4.465 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.4271, allocations: 4 kB / 1.036 GB, free: 4.461 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.4272, allocations: 32 / 1.036 GB, free: 4.461 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.4272, allocations: 7.938 kB / 1.036 GB, free: 4.453 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.612e-05/0.4273, allocations: 11.98 kB / 1.036 GB, free: 4.441 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.4273, allocations: 0 / 1.036 GB, free: 4.441 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.285e-05/0.4273, allocations: 11.98 kB / 1.036 GB, free: 4.43 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-06/0.4274, allocations: 0 / 1.036 GB, free: 4.43 MB / 0.6823 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 8.376e-05/0.4274, allocations: 113.8 kB / 1.036 GB, free: 4.309 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.829e-05/0.4275, allocations: 4 kB / 1.036 GB, free: 4.305 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002349/0.4277, allocations: 81.19 kB / 1.036 GB, free: 4.219 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.4277, allocations: 0 / 1.036 GB, free: 4.219 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.4278, allocations: 0 / 1.036 GB, free: 4.219 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.4278, allocations: 4.25 kB / 1.036 GB, free: 4.215 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001585/0.4279, allocations: 165.6 kB / 1.036 GB, free: 4.004 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.4279, allocations: 7.938 kB / 1.036 GB, free: 3.996 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.751e-05/0.428, allocations: 19.92 kB / 1.036 GB, free: 3.977 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.428, allocations: 0 / 1.036 GB, free: 3.977 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.103e-06/0.428, allocations: 0 / 1.036 GB, free: 3.977 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.428, allocations: 4 kB / 1.036 GB, free: 3.973 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.428, allocations: 0 / 1.036 GB, free: 3.973 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002564/0.4283, allocations: 175.4 kB / 1.036 GB, free: 3.785 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.585e-05/0.4284, allocations: 81.11 kB / 1.036 GB, free: 3.688 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.393e-05/0.4284, allocations: 4 kB / 1.036 GB, free: 3.684 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.693e-05/0.4285, allocations: 7.984 kB / 1.036 GB, free: 3.676 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.177e-05/0.4285, allocations: 8.031 kB / 1.036 GB, free: 3.668 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-06/0.4285, allocations: 0 / 1.036 GB, free: 3.668 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.47e-05/0.4286, allocations: 83.27 kB / 1.037 GB, free: 3.586 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4286, allocations: 0 / 1.037 GB, free: 3.586 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002151/0.4288, allocations: 20 kB / 1.037 GB, free: 3.566 MB / 0.6823 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.0001679/0.429, allocations: 115.2 kB / 1.037 GB, free: 3.445 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002085/0.4292, allocations: 55.89 kB / 1.037 GB, free: 3.391 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.4292, allocations: 0 / 1.037 GB, free: 3.391 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 9.595e-05/0.4293, allocations: 23.98 kB / 1.037 GB, free: 3.367 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001854/0.4295, allocations: 10.27 kB / 1.037 GB, free: 3.359 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000257/0.4297, allocations: 116.7 kB / 1.037 GB, free: 3.215 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002493/0.43, allocations: 0.6848 MB / 1.038 GB, free: 2.504 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 2.46e-05/0.43, allocations: 0 / 1.038 GB, free: 2.504 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.013e-05/0.4301, allocations: 7.438 kB / 1.038 GB, free: 2.496 MB / 0.6823 GB Notification: Performance of SimCode: time 1.953e-06/0.4301, allocations: 0 / 1.038 GB, free: 2.496 MB / 0.6823 GB Notification: Performance of Templates: time 0.00251/0.4326, allocations: 0.6091 MB / 1.038 GB, free: 1.891 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches