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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.006031/0.006031, allocations: 101.7 kB / 15.88 MB, free: 5.867 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.001422/0.001422, allocations: 192.9 kB / 16.79 MB, free: 5.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.381/1.381, allocations: 222.9 MB / 240.5 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.565/2.565, allocations: 437 MB / 0.7106 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 64.12 kB / 0.8692 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6733/0.6749, allocations: 151.6 MB / 1.017 GB, free: 2.789 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.002085/0.677, allocations: 0.6528 MB / 1.018 GB, free: 2.133 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008005/0.6779, allocations: 350.9 kB / 1.018 GB, free: 1.789 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.157e-05/0.6779, allocations: 0 / 1.018 GB, free: 1.789 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.82e-05/0.6779, allocations: 0 / 1.018 GB, free: 1.789 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.31e-06/0.678, allocations: 0 / 1.018 GB, free: 1.789 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004164/0.6784, allocations: 71.84 kB / 1.018 GB, free: 1.719 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 3.66e-05/0.6784, allocations: 0 / 1.018 GB, free: 1.719 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.922e-05/0.6785, allocations: 4 kB / 1.018 GB, free: 1.715 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.48e-05/0.6785, allocations: 4 kB / 1.018 GB, free: 1.711 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.295e-05/0.6785, allocations: 0 / 1.018 GB, free: 1.711 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.027e-05/0.6785, allocations: 0 / 1.018 GB, free: 1.711 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004228/0.679, allocations: 275.6 kB / 1.019 GB, free: 1.441 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.452e-05/0.679, allocations: 7.922 kB / 1.019 GB, free: 1.434 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 1.754e-05/0.679, allocations: 0 / 1.019 GB, free: 1.434 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001419/0.6792, allocations: 59.91 kB / 1.019 GB, free: 1.375 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.6792, allocations: 0 / 1.019 GB, free: 1.375 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.082e-06/0.6792, allocations: 0 / 1.019 GB, free: 1.375 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.529e-06/0.6792, allocations: 0 / 1.019 GB, free: 1.375 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.0003379/0.6795, allocations: 331.6 kB / 1.019 GB, free: 1 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.6796, allocations: 8.031 kB / 1.019 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.382e-05/0.6796, allocations: 12.78 kB / 1.019 GB, free: 0.9805 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.6798, allocations: 164.3 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.858e-06/0.6798, allocations: 384 / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.995e-06/0.6798, allocations: 384 / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.964e-05/0.6799, allocations: 38.25 kB / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.6799, allocations: 192 / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.6799, allocations: 3.938 kB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.6799, allocations: 0 / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.981e-05/0.68, allocations: 4 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001508/0.6801, allocations: 141.7 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 4.079e-05/0.6802, allocations: 22.55 kB / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.867e-05/0.6802, allocations: 8.859 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005449/0.6807, allocations: 433.5 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.6808, allocations: 34.56 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 1.313e-06/0.6808, allocations: 0 / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001546/0.6809, allocations: 37.64 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/0.681, allocations: 55.34 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.407e-05/0.681, allocations: 89.86 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.174e-05/0.6811, allocations: 25.7 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.715e-05/0.6811, allocations: 84.27 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.974e-05/0.6811, allocations: 3.938 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.862e-05/0.6812, allocations: 13.72 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.6813, allocations: 318.8 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.175e-05/0.6813, allocations: 4 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.568e-06/0.6813, allocations: 4 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.533e-05/0.6813, allocations: 4.859 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.6814, allocations: 0 / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1) (initialization): time 7.684e-05/0.6814, allocations: 37.77 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.6815, allocations: 4 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.6815, allocations: 0 / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.6815, allocations: 3.938 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.271e-05/0.6815, allocations: 4 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.6816, allocations: 7.922 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.105e-05/0.6816, allocations: 0 / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.6816, allocations: 0 / 1.02 GB, free: 15.2 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 7.88e-05/0.6817, allocations: 113.9 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.524e-05/0.6817, allocations: 4 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001001/0.6818, allocations: 36.77 kB / 1.021 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.6818, allocations: 0 / 1.021 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.6818, allocations: 3.984 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.6818, allocations: 0 / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.59e-05/0.6819, allocations: 141.7 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.6819, allocations: 7.938 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.291e-05/0.682, allocations: 0 / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.682, allocations: 32 / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.064e-06/0.682, allocations: 7.938 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.682, allocations: 4 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.682, allocations: 0 / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.301e-05/0.6821, allocations: 65.06 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.153e-05/0.6821, allocations: 77.11 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.122e-05/0.6821, allocations: 3.938 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.013e-05/0.6822, allocations: 4 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.109e-05/0.6822, allocations: 7.969 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.6822, allocations: 0 / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.726e-05/0.6822, allocations: 75.28 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6822, allocations: 0 / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002047/0.6824, allocations: 21.95 kB / 1.021 GB, free: 14.53 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.0001858/0.6826, allocations: 111.2 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 6.699e-05/0.6827, allocations: 7.938 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.6827, allocations: 4.062 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.065e-06/0.6827, allocations: 4 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000136/0.6829, allocations: 1.375 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001844/0.683, allocations: 104.4 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002401/0.6833, allocations: 0.6731 MB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.038e-05/0.6833, allocations: 7.438 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of SimCode: time 4.4e-07/0.6833, allocations: 0 / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of Templates: time 0.001847/0.6852, allocations: 459.9 kB / 1.022 GB, free: 13.11 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/jenkins1/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