Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 109.2 kB / 16.45 MB, free: 6.508 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 213.7 kB / 19.43 MB, free: 3.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.509/1.509, allocations: 230.6 MB / 252.8 MB, free: 9.133 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.208/3.208, allocations: 0.4899 GB / 0.7915 GB, free: 33.45 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002135/0.002135, allocations: 74.42 kB / 1.149 GB, free: 26.07 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3521/0.3542, allocations: 176.1 MB / 1.321 GB, free: 2.82 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002831/0.357, allocations: 1.466 MB / 1.323 GB, free: 1.344 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0007806/0.3578, allocations: 387.1 kB / 1.323 GB, free: 0.9648 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.267e-05/0.3578, allocations: 0 / 1.323 GB, free: 0.9648 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.371e-05/0.3579, allocations: 0 / 1.323 GB, free: 0.9648 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 4.741e-05/0.3579, allocations: 3.938 kB / 1.323 GB, free: 0.9609 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000456/0.3584, allocations: 111.7 kB / 1.323 GB, free: 0.8516 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 8.507e-05/0.3585, allocations: 31.86 kB / 1.323 GB, free: 0.8203 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 8.492e-05/0.3585, allocations: 4 kB / 1.323 GB, free: 0.8164 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 4.312e-05/0.3586, allocations: 11.98 kB / 1.323 GB, free: 0.8047 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 8.988e-05/0.3587, allocations: 15.92 kB / 1.323 GB, free: 0.7891 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.462e-05/0.3587, allocations: 4 kB / 1.323 GB, free: 0.7852 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004125/0.3591, allocations: 275.6 kB / 1.323 GB, free: 0.5156 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.169e-05/0.3591, allocations: 3.938 kB / 1.323 GB, free: 0.5117 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.9e-05/0.3591, allocations: 15.92 kB / 1.324 GB, free: 0.4961 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002088/0.3594, allocations: 103.7 kB / 1.324 GB, free: 404 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3594, allocations: 0 / 1.324 GB, free: 404 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3594, allocations: 0 / 1.324 GB, free: 404 kB / 1.014 GB Notification: Performance of Transformations before backend: time 9.488e-06/0.3594, allocations: 4 kB / 1.324 GB, free: 400 kB / 1.014 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.0006835/0.3601, allocations: 367.1 kB / 1.324 GB, free: 15.98 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.3601, allocations: 11.98 kB / 1.324 GB, free: 15.97 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.604e-05/0.3601, allocations: 12.83 kB / 1.324 GB, free: 15.96 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001512/0.3603, allocations: 168.4 kB / 1.324 GB, free: 15.75 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.3603, allocations: 4.375 kB / 1.324 GB, free: 15.75 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.121e-05/0.3603, allocations: 384 / 1.324 GB, free: 15.75 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002023/0.3605, allocations: 58.17 kB / 1.324 GB, free: 15.69 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.3605, allocations: 192 / 1.324 GB, free: 15.69 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.3605, allocations: 3.938 kB / 1.324 GB, free: 15.68 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.3606, allocations: 4 kB / 1.324 GB, free: 15.68 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00018/0.3607, allocations: 39.89 kB / 1.324 GB, free: 15.64 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003467/0.3611, allocations: 245 kB / 1.324 GB, free: 15.35 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001463/0.3612, allocations: 42.5 kB / 1.325 GB, free: 15.3 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.3613, allocations: 24.91 kB / 1.325 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007822/0.3621, allocations: 461.5 kB / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.3622, allocations: 34.56 kB / 1.325 GB, free: 14.69 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.3622, allocations: 0 / 1.325 GB, free: 14.69 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0003956/0.3625, allocations: 89.53 kB / 1.325 GB, free: 14.59 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.169e-05/0.3626, allocations: 51.41 kB / 1.325 GB, free: 14.53 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.739e-05/0.3627, allocations: 110 kB / 1.325 GB, free: 14.41 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/0.3627, allocations: 25.7 kB / 1.325 GB, free: 14.38 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.553e-05/0.3627, allocations: 80.14 kB / 1.325 GB, free: 14.3 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.012e-05/0.3628, allocations: 11.89 kB / 1.325 GB, free: 14.29 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.662e-05/0.3628, allocations: 13.72 kB / 1.325 GB, free: 14.27 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.3629, allocations: 322.8 kB / 1.326 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.642e-05/0.363, allocations: 15.98 kB / 1.326 GB, free: 13.93 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.905e-05/0.3631, allocations: 15.98 kB / 1.326 GB, free: 13.91 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001634/0.3633, allocations: 44.77 kB / 1.326 GB, free: 13.87 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3633, allocations: 0 / 1.326 GB, free: 13.87 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002207/0.3635, allocations: 69.59 kB / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.3635, allocations: 8 kB / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.187e-06/0.3635, allocations: 4.094 kB / 1.326 GB, free: 13.78 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.3635, allocations: 0 / 1.326 GB, free: 13.78 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.416e-05/0.3636, allocations: 7.984 kB / 1.326 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.3636, allocations: 0 / 1.326 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.654e-05/0.3637, allocations: 7.984 kB / 1.326 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.3637, allocations: 7.938 kB / 1.326 GB, free: 13.76 MB / 1.029 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 8.289e-05/0.3638, allocations: 113.8 kB / 1.326 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.922e-05/0.3638, allocations: 7.953 kB / 1.326 GB, free: 13.63 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002412/0.364, allocations: 73.12 kB / 1.326 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.364, allocations: 0 / 1.326 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.364, allocations: 4 kB / 1.326 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-06/0.364, allocations: 0 / 1.326 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002555/0.3643, allocations: 165.6 kB / 1.326 GB, free: 13.33 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.3643, allocations: 0 / 1.326 GB, free: 13.33 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.965e-05/0.3644, allocations: 11.98 kB / 1.326 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.3644, allocations: 0 / 1.326 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.3644, allocations: 4.031 kB / 1.326 GB, free: 13.31 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.3644, allocations: 3.938 kB / 1.326 GB, free: 13.31 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3644, allocations: 256 / 1.326 GB, free: 13.31 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003088/0.3647, allocations: 171.4 kB / 1.326 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.528e-05/0.3647, allocations: 81.11 kB / 1.326 GB, free: 13.03 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.909e-05/0.3648, allocations: 4 kB / 1.326 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.932e-05/0.3648, allocations: 12.02 kB / 1.326 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.495e-05/0.3649, allocations: 0 / 1.326 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-06/0.3649, allocations: 0 / 1.326 GB, free: 13.01 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.88e-05/0.3649, allocations: 87.27 kB / 1.327 GB, free: 12.93 MB / 1.029 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3649, allocations: 4 kB / 1.327 GB, free: 12.92 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000244/0.3652, allocations: 12 kB / 1.327 GB, free: 12.91 MB / 1.029 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.0001869/0.3654, allocations: 109.8 kB / 1.327 GB, free: 12.8 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002363/0.3656, allocations: 39.95 kB / 1.327 GB, free: 12.76 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3656, allocations: 0 / 1.327 GB, free: 12.76 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.482e-05/0.3657, allocations: 23.92 kB / 1.327 GB, free: 12.73 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002989/0.366, allocations: 10.28 kB / 1.327 GB, free: 12.73 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003053/0.3663, allocations: 117.3 kB / 1.327 GB, free: 12.59 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00033/0.3666, allocations: 0.6808 MB / 1.328 GB, free: 11.88 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.156e-05/0.3667, allocations: 0 / 1.328 GB, free: 11.88 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.382e-05/0.3667, allocations: 15.44 kB / 1.328 GB, free: 11.86 MB / 1.029 GB Notification: Performance of SimCode: time 3e-07/0.3667, allocations: 0 / 1.328 GB, free: 11.86 MB / 1.029 GB Notification: Performance of Templates: time 0.003446/0.3701, allocations: 0.7297 MB / 1.328 GB, free: 11.14 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.830867554992437]