Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.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.RegNonZeroPowerDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00559/0.00559, allocations: 97.27 kB / 15.73 MB, free: 6.066 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.001209/0.001209, allocations: 195.9 kB / 16.68 MB, free: 5.973 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.326/1.326, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.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.277/2.277, allocations: 390.2 MB / 0.6648 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 63.91 kB / 0.9509 GB, free: 7.605 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9819/0.9831, allocations: 140.4 MB / 1.088 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.00169/0.9848, allocations: 0.5895 MB / 1.089 GB, free: 5.156 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0006548/0.9855, allocations: 352.1 kB / 1.089 GB, free: 4.926 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.606e-05/0.9855, allocations: 1.094 kB / 1.089 GB, free: 4.926 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.628e-05/0.9856, allocations: 0 / 1.089 GB, free: 4.926 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 1.876e-05/0.9856, allocations: 0 / 1.089 GB, free: 4.926 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004949/0.9861, allocations: 113.3 kB / 1.089 GB, free: 4.887 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.121e-05/0.9861, allocations: 6 kB / 1.089 GB, free: 4.887 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.853e-05/0.9862, allocations: 6.016 kB / 1.089 GB, free: 4.883 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.12e-05/0.9862, allocations: 11.78 kB / 1.089 GB, free: 4.875 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.508e-05/0.9863, allocations: 2.219 kB / 1.089 GB, free: 4.875 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.254e-05/0.9863, allocations: 1.125 kB / 1.089 GB, free: 4.875 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004446/0.9868, allocations: 273.3 kB / 1.089 GB, free: 4.809 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.58e-05/0.9868, allocations: 5.625 kB / 1.089 GB, free: 4.805 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.202e-05/0.9868, allocations: 6.562 kB / 1.089 GB, free: 4.801 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002239/0.987, allocations: 85.98 kB / 1.089 GB, free: 4.781 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.987, allocations: 0 / 1.089 GB, free: 4.781 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.623e-06/0.9871, allocations: 1.062 kB / 1.089 GB, free: 4.781 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.9871, allocations: 4.75 kB / 1.089 GB, free: 4.777 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003278/0.9874, allocations: 343.9 kB / 1.09 GB, free: 4.406 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.9874, allocations: 9.75 kB / 1.09 GB, free: 4.406 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.399e-05/0.9875, allocations: 2.797 kB / 1.09 GB, free: 4.406 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.953e-05/0.9876, allocations: 166.1 kB / 1.09 GB, free: 4.207 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.9876, allocations: 1.5 kB / 1.09 GB, free: 4.207 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.232e-05/0.9876, allocations: 10.12 kB / 1.09 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001013/0.9877, allocations: 37.72 kB / 1.09 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.9878, allocations: 4.188 kB / 1.09 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.9878, allocations: 3.938 kB / 1.09 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.992e-06/0.9878, allocations: 0.875 kB / 1.09 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.307e-05/0.9878, allocations: 2.812 kB / 1.09 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001356/0.988, allocations: 152.4 kB / 1.09 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.8e-05/0.988, allocations: 19.8 kB / 1.09 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.893e-05/0.988, allocations: 12.38 kB / 1.09 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006653/0.9887, allocations: 462.4 kB / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/0.9887, allocations: 35.91 kB / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.272e-06/0.9888, allocations: 0 / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005065/0.9893, allocations: 256.2 kB / 1.091 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.621e-05/0.9893, allocations: 52.5 kB / 1.091 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.59e-05/0.9894, allocations: 93.59 kB / 1.091 GB, free: 2.984 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.869e-06/0.9894, allocations: 26.5 kB / 1.091 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.721e-05/0.9894, allocations: 85.11 kB / 1.091 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.518e-05/0.9894, allocations: 18.78 kB / 1.091 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-05/0.9895, allocations: 18.58 kB / 1.091 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.143e-05/0.9895, allocations: 316.7 kB / 1.091 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.005e-05/0.9895, allocations: 8.297 kB / 1.091 GB, free: 2.512 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.922e-05/0.9896, allocations: 19.97 kB / 1.091 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.86e-05/0.9896, allocations: 28.47 kB / 1.091 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.9896, allocations: 0.7969 kB / 1.091 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.451e-05/0.9897, allocations: 52.41 kB / 1.092 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.9898, allocations: 9.188 kB / 1.092 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.9898, allocations: 0 / 1.092 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.9898, allocations: 1.969 kB / 1.092 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.122e-05/0.9898, allocations: 11.17 kB / 1.092 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.9899, allocations: 1 kB / 1.092 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.985e-05/0.9899, allocations: 4.703 kB / 1.092 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.856e-06/0.9899, allocations: 2.469 kB / 1.092 GB, free: 2.418 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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 5.139e-05/0.99, allocations: 115.8 kB / 1.092 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.447e-05/0.99, allocations: 10.08 kB / 1.092 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000125/0.9901, allocations: 55.83 kB / 1.092 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.9901, allocations: 0 / 1.092 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.9901, allocations: 1.344 kB / 1.092 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.9901, allocations: 0.6094 kB / 1.092 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.443e-05/0.9902, allocations: 153.4 kB / 1.092 GB, free: 2.051 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.9902, allocations: 0 / 1.092 GB, free: 2.051 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.331e-05/0.9903, allocations: 14.36 kB / 1.092 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.9903, allocations: 3.938 kB / 1.092 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/0.9903, allocations: 1.062 kB / 1.092 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.9903, allocations: 0.7969 kB / 1.092 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.9903, allocations: 1.094 kB / 1.092 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001381/0.9905, allocations: 74.98 kB / 1.092 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.057e-05/0.9905, allocations: 78.77 kB / 1.092 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.489e-05/0.9905, allocations: 5.703 kB / 1.092 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.55e-05/0.9906, allocations: 5.188 kB / 1.092 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.604e-05/0.9906, allocations: 2.469 kB / 1.092 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-06/0.9906, allocations: 1.188 kB / 1.092 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.377e-05/0.9906, allocations: 82.23 kB / 1.092 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.9906, allocations: 0 / 1.092 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002396/0.9909, allocations: 27.69 kB / 1.092 GB, free: 1.781 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y) * 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 (3): * Single equations (assignments): 3 * 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.0002176/0.9911, allocations: 130.8 kB / 1.092 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 9.752e-05/0.9912, allocations: 22.14 kB / 1.092 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.9912, allocations: 0 / 1.092 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.754e-05/0.9912, allocations: 6.641 kB / 1.092 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001404/0.9914, allocations: 2.812 kB / 1.092 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002248/0.9916, allocations: 109.8 kB / 1.092 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002101/0.9918, allocations: 0.6768 MB / 1.093 GB, free: 16.86 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.271e-05/0.9919, allocations: 7.266 kB / 1.093 GB, free: 16.86 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.656e-05/0.9919, allocations: 13.56 kB / 1.093 GB, free: 16.85 MB / 0.8731 GB Notification: Performance of SimCode: time 2.8e-07/0.9919, allocations: 0.8438 kB / 1.093 GB, free: 16.85 MB / 0.8731 GB Notification: Performance of Templates: time 0.00346/0.9953, allocations: 0.8788 MB / 1.094 GB, free: 16.75 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches