Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Functions.Examples.RegNonZeroPowerDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check") translateModel(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008755/0.0008755, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.006237/0.006237, allocations: 170.7 kB / 16.27 MB, free: 6.652 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.503/1.503, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.614/2.614, allocations: 390.9 MB / 0.6663 GB, free: 2.379 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003862/0.0003864, allocations: 12 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8528/0.8533, allocations: 142.4 MB / 0.9551 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.0008058/0.8541, allocations: 358.3 kB / 0.9554 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006901/0.8548, allocations: 371 kB / 0.9557 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.648e-05/0.8548, allocations: 4 kB / 0.9557 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.993e-05/0.8549, allocations: 3.938 kB / 0.9558 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.754e-05/0.8549, allocations: 0 / 0.9558 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003535/0.8553, allocations: 74.22 kB / 0.9558 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.01e-05/0.8553, allocations: 18.55 kB / 0.9558 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.559e-05/0.8554, allocations: 6.453 kB / 0.9558 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.123e-05/0.8554, allocations: 16.73 kB / 0.9559 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.383e-05/0.8555, allocations: 11.64 kB / 0.9559 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.497e-05/0.8555, allocations: 5.375 kB / 0.9559 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003623/0.8559, allocations: 272 kB / 0.9561 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.629e-05/0.8559, allocations: 8.984 kB / 0.9561 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.206e-05/0.8559, allocations: 37.39 kB / 0.9562 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001742/0.8561, allocations: 105.9 kB / 0.9563 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.8561, allocations: 0.8125 kB / 0.9563 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.315e-06/0.8561, allocations: 0 / 0.9563 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.8561, allocations: 1.25 kB / 0.9563 GB, free: 7.02 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003958/0.8565, allocations: 351.6 kB / 0.9566 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.036e-05/0.8566, allocations: 13.38 kB / 0.9566 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.7e-05/0.8567, allocations: 7.875 kB / 0.9566 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.771e-05/0.8568, allocations: 161.6 kB / 0.9568 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.8568, allocations: 2.531 kB / 0.9568 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.772e-05/0.8568, allocations: 10.72 kB / 0.9568 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001218/0.857, allocations: 49.33 kB / 0.9569 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.857, allocations: 1.375 kB / 0.9569 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.857, allocations: 3.938 kB / 0.9569 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.857, allocations: 1.406 kB / 0.9569 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.548e-05/0.8571, allocations: 22.73 kB / 0.9569 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001568/0.8572, allocations: 174.1 kB / 0.9571 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001114/0.8574, allocations: 55.44 kB / 0.9571 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.955e-05/0.8574, allocations: 29.31 kB / 0.9571 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006699/0.8581, allocations: 468.9 kB / 0.9576 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.8581, allocations: 35.53 kB / 0.9576 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.8581, allocations: 0 / 0.9576 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001311/0.8594, allocations: 0.5926 MB / 0.9582 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.422e-05/0.8595, allocations: 53.19 kB / 0.9582 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.678e-05/0.8595, allocations: 97.42 kB / 0.9583 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.8596, allocations: 29.64 kB / 0.9584 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.263e-05/0.8596, allocations: 85.95 kB / 0.9584 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.036e-05/0.8596, allocations: 42.95 kB / 0.9585 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.581e-05/0.8597, allocations: 25.3 kB / 0.9585 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.241e-05/0.8597, allocations: 312.8 kB / 0.9588 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.816e-05/0.8598, allocations: 23.98 kB / 0.9588 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.752e-05/0.8598, allocations: 20.7 kB / 0.9589 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.387e-05/0.8599, allocations: 55.27 kB / 0.9589 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.21e-07/0.8599, allocations: 0 / 0.9589 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001527/0.8601, allocations: 99.88 kB / 0.959 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.8601, allocations: 9.625 kB / 0.959 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.8601, allocations: 0 / 0.959 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.8601, allocations: 9.422 kB / 0.959 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.8602, allocations: 20.75 kB / 0.959 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.8603, allocations: 0.9375 kB / 0.959 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.423e-05/0.8603, allocations: 1.406 kB / 0.959 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.338e-06/0.8603, allocations: 2.969 kB / 0.959 GB, free: 4.223 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 (13): * Single equations (assignments): 13 * 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.217e-05/0.8604, allocations: 120 kB / 0.9592 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.921e-05/0.8604, allocations: 11.72 kB / 0.9592 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002209/0.8606, allocations: 106.7 kB / 0.9593 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.8607, allocations: 5.156 kB / 0.9593 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.8607, allocations: 1.125 kB / 0.9593 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.8607, allocations: 0 / 0.9593 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003638/0.861, allocations: 352.9 kB / 0.9596 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.8611, allocations: 4 kB / 0.9596 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.8612, allocations: 25.42 kB / 0.9596 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.8612, allocations: 1.094 kB / 0.9596 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.637e-06/0.8612, allocations: 0.9375 kB / 0.9596 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.8612, allocations: 1.031 kB / 0.9596 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.8612, allocations: 0.9688 kB / 0.9596 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002214/0.8614, allocations: 230.1 kB / 0.9599 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.478e-05/0.8615, allocations: 84.59 kB / 0.9599 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.473e-05/0.8615, allocations: 4 kB / 0.9599 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.45e-05/0.8616, allocations: 3.094 kB / 0.96 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.387e-05/0.8616, allocations: 7.672 kB / 0.96 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/0.8616, allocations: 6 kB / 0.96 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.344e-05/0.8616, allocations: 77.38 kB / 0.96 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8616, allocations: 6.031 kB / 0.96 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002731/0.8619, allocations: 43.67 kB / 0.9601 GB, free: 3.258 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_y_comp) * 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 (11): * Single equations (assignments): 11 * 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.0002432/0.8622, allocations: 143.2 kB / 0.9602 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001423/0.8623, allocations: 68.11 kB / 0.9603 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.8623, allocations: 0 / 0.9603 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.515e-05/0.8624, allocations: 34.36 kB / 0.9603 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002183/0.8626, allocations: 9.562 kB / 0.9603 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003384/0.8629, allocations: 210.9 kB / 0.9605 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001172/0.8631, allocations: 0.6907 MB / 0.9612 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.557e-05/0.8631, allocations: 5.5 kB / 0.9612 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.384e-05/0.8632, allocations: 12.94 kB / 0.9612 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of SimCode: time 3.5e-07/0.8632, allocations: 4 kB / 0.9612 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of Templates: time 0.004177/0.8673, allocations: 1.375 MB / 0.9626 GB, free: 1.52 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches