Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Functions.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 108 kB / 15.61 MB, free: 148 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.002032/0.002032, allocations: 196.1 kB / 16.53 MB, free: 6.656 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.38/1.38, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.627/2.627, allocations: 437 MB / 0.7103 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 71.88 kB / 0.8692 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6491/0.6505, allocations: 151.6 MB / 1.017 GB, free: 2.551 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.002273/0.6528, allocations: 0.5786 MB / 1.018 GB, free: 1.969 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0007281/0.6536, allocations: 330.8 kB / 1.018 GB, free: 1.645 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.798e-05/0.6536, allocations: 0 / 1.018 GB, free: 1.645 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.509e-05/0.6536, allocations: 0 / 1.018 GB, free: 1.645 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.773e-06/0.6537, allocations: 0 / 1.018 GB, free: 1.645 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005664/0.6542, allocations: 111.3 kB / 1.018 GB, free: 1.539 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.423e-05/0.6543, allocations: 4 kB / 1.018 GB, free: 1.535 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.695e-05/0.6543, allocations: 0 / 1.018 GB, free: 1.535 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.519e-05/0.6544, allocations: 0 / 1.018 GB, free: 1.535 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.48e-05/0.6544, allocations: 3.984 kB / 1.018 GB, free: 1.531 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.153e-05/0.6544, allocations: 0 / 1.018 GB, free: 1.531 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004588/0.6549, allocations: 271.7 kB / 1.019 GB, free: 1.266 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.24e-05/0.6549, allocations: 0 / 1.019 GB, free: 1.266 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.177e-05/0.6549, allocations: 7.984 kB / 1.019 GB, free: 1.258 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002111/0.6551, allocations: 87.86 kB / 1.019 GB, free: 1.172 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.6552, allocations: 0 / 1.019 GB, free: 1.172 MB / 0.7637 GB Notification: Performance of FrontEnd: time 4.549e-06/0.6552, allocations: 4 kB / 1.019 GB, free: 1.168 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.6552, allocations: 7.875 kB / 1.019 GB, free: 1.16 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003965/0.6556, allocations: 327.6 kB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.6556, allocations: 8.031 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.844e-05/0.6557, allocations: 0.9375 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001487/0.6559, allocations: 168.3 kB / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.028e-05/0.6559, allocations: 4.375 kB / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.186e-05/0.6559, allocations: 8.359 kB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001548/0.6561, allocations: 30.27 kB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.6561, allocations: 192 / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.409e-05/0.6561, allocations: 3.938 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.6561, allocations: 0 / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.571e-05/0.6562, allocations: 4 kB / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001877/0.6564, allocations: 141.7 kB / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 5.911e-05/0.6564, allocations: 30.53 kB / 1.019 GB, free: 304 kB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.478e-05/0.6565, allocations: 8.859 kB / 1.019 GB, free: 292 kB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007272/0.6572, allocations: 421.6 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.874e-05/0.6573, allocations: 34.56 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 1.293e-06/0.6573, allocations: 0 / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.000288/0.6576, allocations: 37.64 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.756e-05/0.6576, allocations: 55.41 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.553e-05/0.6577, allocations: 89.86 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/0.6577, allocations: 25.7 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.936e-05/0.6578, allocations: 80.14 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.861e-05/0.6578, allocations: 3.906 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.704e-05/0.6579, allocations: 17.64 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.658, allocations: 319 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.277e-05/0.658, allocations: 4 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.165e-06/0.6581, allocations: 0 / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.544e-05/0.6581, allocations: 8.859 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.6581, allocations: 0 / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001126/0.6582, allocations: 29.7 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.6582, allocations: 11.94 kB / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.6583, allocations: 0 / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.6583, allocations: 7.922 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.02e-05/0.6583, allocations: 4.094 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.6584, allocations: 3.938 kB / 1.02 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.351e-05/0.6584, allocations: 4 kB / 1.02 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.6584, allocations: 0 / 1.02 GB, free: 14.99 MB / 0.7794 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 (1): * Single equations (assignments): 1 * 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.0001121/0.6585, allocations: 111.4 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.323e-05/0.6586, allocations: 0 / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001087/0.6587, allocations: 42.72 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.6587, allocations: 4 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.6587, allocations: 7.969 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.6587, allocations: 0 / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001161/0.6588, allocations: 141.7 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.6588, allocations: 4 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.779e-05/0.6589, allocations: 4 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.6589, allocations: 0 / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.6589, allocations: 3.938 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.6589, allocations: 3.984 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.6589, allocations: 0 / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001106/0.659, allocations: 65.08 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.634e-05/0.6591, allocations: 77.11 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.582e-05/0.6591, allocations: 3.938 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.764e-06/0.6591, allocations: 0 / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.089e-05/0.6591, allocations: 3.984 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-06/0.6591, allocations: 4 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.746e-05/0.6592, allocations: 75.28 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.6592, allocations: 0 / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002344/0.6594, allocations: 20.03 kB / 1.021 GB, free: 14.33 MB / 0.7794 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 (1): * Single equations (assignments): 1 * 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.0002182/0.6596, allocations: 111.2 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 9.385e-05/0.6597, allocations: 7.938 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.6597, allocations: 0 / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.185e-06/0.6598, allocations: 3.984 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001572/0.6599, allocations: 5.406 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002794/0.6602, allocations: 89.09 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002513/0.6605, allocations: 0.6728 MB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.995e-05/0.6605, allocations: 4 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.601e-05/0.6605, allocations: 7.438 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of SimCode: time 8.81e-07/0.6605, allocations: 0 / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of Templates: time 0.002557/0.6631, allocations: 464.2 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches