Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.0008292/0.0008332, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006887/0.006887, allocations: 170.7 kB / 16.26 MB, free: 6.676 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.369/1.369, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.707/2.707, allocations: 443.3 MB / 0.7175 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005065/0.0005067, allocations: 11.78 kB / 0.8796 GB, free: 41.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.3169, allocations: 155.2 MB / 1.031 GB, free: 4.492 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.0007014/0.3177, allocations: 359.5 kB / 1.031 GB, free: 4.141 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0007463/0.3184, allocations: 375.2 kB / 1.032 GB, free: 3.773 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.543e-05/0.3184, allocations: 4 kB / 1.032 GB, free: 3.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.633e-05/0.3185, allocations: 0 / 1.032 GB, free: 3.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 2.291e-05/0.3185, allocations: 0 / 1.032 GB, free: 3.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003705/0.3189, allocations: 79.78 kB / 1.032 GB, free: 3.691 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.68e-05/0.3189, allocations: 19.98 kB / 1.032 GB, free: 3.672 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.735e-05/0.319, allocations: 0 / 1.032 GB, free: 3.672 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.422e-05/0.319, allocations: 15.92 kB / 1.032 GB, free: 3.656 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.248e-05/0.3191, allocations: 15.92 kB / 1.032 GB, free: 3.641 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.484e-05/0.3191, allocations: 8 kB / 1.032 GB, free: 3.633 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000354/0.3195, allocations: 271.6 kB / 1.032 GB, free: 3.367 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.346e-05/0.3195, allocations: 4 kB / 1.032 GB, free: 3.363 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.573e-05/0.3195, allocations: 41.62 kB / 1.032 GB, free: 3.316 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000172/0.3197, allocations: 103.8 kB / 1.032 GB, free: 3.215 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3197, allocations: 0 / 1.032 GB, free: 3.215 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3197, allocations: 0 / 1.032 GB, free: 3.215 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.817e-06/0.3197, allocations: 0 / 1.032 GB, free: 3.215 MB / 0.7794 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.0003899/0.3201, allocations: 351.7 kB / 1.033 GB, free: 2.82 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.3202, allocations: 12.03 kB / 1.033 GB, free: 2.809 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.266e-05/0.3202, allocations: 4.938 kB / 1.033 GB, free: 2.805 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.3203, allocations: 172.2 kB / 1.033 GB, free: 2.598 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.3204, allocations: 384 / 1.033 GB, free: 2.598 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.604e-05/0.3204, allocations: 12.31 kB / 1.033 GB, free: 2.586 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001164/0.3205, allocations: 54.17 kB / 1.033 GB, free: 2.527 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.3205, allocations: 192 / 1.033 GB, free: 2.527 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.3206, allocations: 3.938 kB / 1.033 GB, free: 2.523 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.3206, allocations: 0 / 1.033 GB, free: 2.523 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.442e-05/0.3206, allocations: 19.98 kB / 1.033 GB, free: 2.504 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001617/0.3208, allocations: 165.7 kB / 1.033 GB, free: 2.293 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001127/0.3209, allocations: 66.47 kB / 1.033 GB, free: 2.219 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.336e-05/0.321, allocations: 28.86 kB / 1.033 GB, free: 2.188 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006525/0.3216, allocations: 461.5 kB / 1.034 GB, free: 1.645 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.636e-05/0.3217, allocations: 42.56 kB / 1.034 GB, free: 1.594 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.3217, allocations: 0 / 1.034 GB, free: 1.594 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.001268/0.3229, allocations: 0.5955 MB / 1.034 GB, free: 0.9062 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.165e-05/0.323, allocations: 51.41 kB / 1.034 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.137e-05/0.3231, allocations: 101.8 kB / 1.034 GB, free: 0.7344 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.3231, allocations: 25.7 kB / 1.034 GB, free: 0.7031 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.525e-05/0.3231, allocations: 84.14 kB / 1.035 GB, free: 0.6172 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.871e-05/0.3232, allocations: 39.45 kB / 1.035 GB, free: 0.5781 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.839e-05/0.3232, allocations: 21.72 kB / 1.035 GB, free: 0.5508 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.437e-05/0.3233, allocations: 314.8 kB / 1.035 GB, free: 240 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.278e-05/0.3233, allocations: 27.94 kB / 1.035 GB, free: 212 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.46e-05/0.3234, allocations: 19.98 kB / 1.035 GB, free: 192 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.106e-05/0.3235, allocations: 52.86 kB / 1.035 GB, free: 136 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.22e-07/0.3235, allocations: 0 / 1.035 GB, free: 136 kB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001539/0.3236, allocations: 104.6 kB / 1.035 GB, free: 28 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.3237, allocations: 5.562 kB / 1.035 GB, free: 24 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3237, allocations: 0 / 1.035 GB, free: 24 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.3237, allocations: 0 / 1.035 GB, free: 24 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.3238, allocations: 31.98 kB / 1.035 GB, free: 15.99 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.3238, allocations: 0 / 1.035 GB, free: 15.99 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.284e-05/0.3239, allocations: 0 / 1.035 GB, free: 15.99 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.3239, allocations: 7.984 kB / 1.035 GB, free: 15.98 MB / 0.795 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 8.145e-05/0.324, allocations: 119.2 kB / 1.035 GB, free: 15.86 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.99e-05/0.324, allocations: 11.84 kB / 1.035 GB, free: 15.85 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001881/0.3242, allocations: 109.5 kB / 1.035 GB, free: 15.73 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.3242, allocations: 4 kB / 1.035 GB, free: 15.73 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.3242, allocations: 4 kB / 1.035 GB, free: 15.73 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.3242, allocations: 4 kB / 1.035 GB, free: 15.72 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003862/0.3246, allocations: 354.6 kB / 1.036 GB, free: 15.32 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3246, allocations: 0 / 1.036 GB, free: 15.32 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.3248, allocations: 31.92 kB / 1.036 GB, free: 15.29 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.3248, allocations: 0 / 1.036 GB, free: 15.29 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.3248, allocations: 0 / 1.036 GB, free: 15.29 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.3248, allocations: 0 / 1.036 GB, free: 15.29 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3248, allocations: 96 / 1.036 GB, free: 15.29 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002461/0.325, allocations: 223.3 kB / 1.036 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.543e-05/0.3251, allocations: 93.03 kB / 1.036 GB, free: 14.95 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.592e-05/0.3251, allocations: 0 / 1.036 GB, free: 14.95 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.258e-05/0.3252, allocations: 7.938 kB / 1.036 GB, free: 14.94 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.491e-05/0.3252, allocations: 7.984 kB / 1.036 GB, free: 14.93 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.3253, allocations: 4 kB / 1.036 GB, free: 14.93 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.112e-05/0.3253, allocations: 83.45 kB / 1.036 GB, free: 14.84 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.663e-06/0.3253, allocations: 0 / 1.036 GB, free: 14.84 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002881/0.3256, allocations: 55.98 kB / 1.036 GB, free: 14.79 MB / 0.795 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.0002408/0.3258, allocations: 141.8 kB / 1.036 GB, free: 14.64 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001362/0.326, allocations: 63.91 kB / 1.036 GB, free: 14.58 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.326, allocations: 0 / 1.036 GB, free: 14.58 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 4.633e-05/0.3261, allocations: 27.94 kB / 1.036 GB, free: 14.55 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002201/0.3263, allocations: 11.98 kB / 1.036 GB, free: 14.54 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003394/0.3266, allocations: 202.8 kB / 1.037 GB, free: 14.32 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002152/0.3269, allocations: 0.6848 MB / 1.037 GB, free: 13.61 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 4.691e-05/0.3269, allocations: 4 kB / 1.037 GB, free: 13.61 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.739e-05/0.3269, allocations: 19.42 kB / 1.037 GB, free: 13.59 MB / 0.795 GB Notification: Performance of SimCode: time 3.5e-07/0.3269, allocations: 0 / 1.037 GB, free: 13.59 MB / 0.795 GB Notification: Performance of Templates: time 0.003555/0.3305, allocations: 1.386 MB / 1.039 GB, free: 12.21 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches