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.001443/0.001443, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.002075/0.002075, allocations: 191.4 kB / 16.25 MB, free: 6.629 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.468/1.468, allocations: 222.9 MB / 239.9 MB, free: 4.547 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.469/2.469, allocations: 390.2 MB / 0.6643 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 67.91 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9828/0.9841, allocations: 140.4 MB / 0.9491 GB, free: 9.254 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.002065/0.9862, allocations: 0.6759 MB / 0.9498 GB, free: 8.734 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006682/0.9869, allocations: 353.4 kB / 0.9501 GB, free: 8.461 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.186e-05/0.987, allocations: 0 / 0.9501 GB, free: 8.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.961e-05/0.987, allocations: 4 kB / 0.9501 GB, free: 8.457 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.456e-05/0.9871, allocations: 0 / 0.9501 GB, free: 8.457 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005889/0.9877, allocations: 94.06 kB / 0.9502 GB, free: 8.41 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.4e-05/0.9877, allocations: 27.48 kB / 0.9502 GB, free: 8.395 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.436e-05/0.9878, allocations: 2.406 kB / 0.9502 GB, free: 8.395 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.115e-05/0.9879, allocations: 20.59 kB / 0.9502 GB, free: 8.379 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.511e-05/0.9879, allocations: 11.27 kB / 0.9503 GB, free: 8.371 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.537e-05/0.9879, allocations: 5.125 kB / 0.9503 GB, free: 8.367 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003662/0.9883, allocations: 275.9 kB / 0.9505 GB, free: 8.215 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.464e-05/0.9883, allocations: 2.438 kB / 0.9505 GB, free: 8.215 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.707e-05/0.9884, allocations: 19.91 kB / 0.9505 GB, free: 8.199 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002005/0.9886, allocations: 98.38 kB / 0.9506 GB, free: 8.133 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.9886, allocations: 0 / 0.9506 GB, free: 8.133 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.156e-06/0.9886, allocations: 1.531 kB / 0.9506 GB, free: 8.133 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.5e-06/0.9886, allocations: 0 / 0.9506 GB, free: 8.133 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.0003933/0.989, allocations: 359.5 kB / 0.951 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.989, allocations: 8.5 kB / 0.951 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.005e-05/0.9891, allocations: 8.906 kB / 0.951 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.196e-05/0.9892, allocations: 169.5 kB / 0.9512 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.253e-05/0.9892, allocations: 1.375 kB / 0.9512 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.672e-05/0.9893, allocations: 7.406 kB / 0.9512 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000132/0.9894, allocations: 61.02 kB / 0.9512 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.9894, allocations: 1.25 kB / 0.9512 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.9895, allocations: 3.938 kB / 0.9512 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.9895, allocations: 0.8125 kB / 0.9512 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.585e-05/0.9895, allocations: 19.8 kB / 0.9513 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001513/0.9897, allocations: 170.1 kB / 0.9514 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001019/0.9898, allocations: 58.53 kB / 0.9515 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.385e-05/0.9898, allocations: 29.72 kB / 0.9515 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006171/0.9905, allocations: 465.2 kB / 0.9519 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.9905, allocations: 35.94 kB / 0.952 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.9905, allocations: 0 / 0.952 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001241/0.9918, allocations: 0.5968 MB / 0.9526 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.069e-05/0.9918, allocations: 52.62 kB / 0.9526 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.116e-05/0.9918, allocations: 101.5 kB / 0.9527 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.9919, allocations: 31.03 kB / 0.9527 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.596e-05/0.9919, allocations: 80.14 kB / 0.9528 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.261e-05/0.9919, allocations: 40.56 kB / 0.9529 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.946e-05/0.992, allocations: 25.8 kB / 0.9529 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.881e-05/0.992, allocations: 320.2 kB / 0.9532 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.793e-05/0.9921, allocations: 20.61 kB / 0.9532 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.93e-05/0.9921, allocations: 24.45 kB / 0.9532 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.374e-05/0.9922, allocations: 57.86 kB / 0.9533 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.42e-07/0.9922, allocations: 0 / 0.9533 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001441/0.9924, allocations: 102.1 kB / 0.9534 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.9924, allocations: 4.188 kB / 0.9534 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.9924, allocations: 5.281 kB / 0.9534 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.9924, allocations: 0 / 0.9534 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.9925, allocations: 18.66 kB / 0.9534 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.9925, allocations: 7.984 kB / 0.9534 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.398e-05/0.9926, allocations: 5.656 kB / 0.9534 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-06/0.9926, allocations: 6.562 kB / 0.9534 GB, free: 5.312 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 5.541e-05/0.9926, allocations: 112.3 kB / 0.9535 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.625e-05/0.9927, allocations: 10.38 kB / 0.9535 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001763/0.9928, allocations: 104.7 kB / 0.9536 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.9928, allocations: 1.281 kB / 0.9536 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.9929, allocations: 3.984 kB / 0.9536 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.9929, allocations: 4 kB / 0.9537 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003361/0.9932, allocations: 354.1 kB / 0.954 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.9932, allocations: 0 / 0.954 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/0.9933, allocations: 16.91 kB / 0.954 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.9933, allocations: 1.688 kB / 0.954 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.9934, allocations: 7.984 kB / 0.954 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.9934, allocations: 1.562 kB / 0.954 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.9934, allocations: 7.875 kB / 0.954 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002188/0.9936, allocations: 222 kB / 0.9542 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.482e-05/0.9936, allocations: 84.97 kB / 0.9543 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.736e-05/0.9937, allocations: 9.219 kB / 0.9543 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.967e-05/0.9937, allocations: 0.9688 kB / 0.9543 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.147e-05/0.9938, allocations: 8.109 kB / 0.9543 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-06/0.9938, allocations: 2.781 kB / 0.9543 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.067e-05/0.9938, allocations: 85.92 kB / 0.9544 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9938, allocations: 0 / 0.9544 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002772/0.9941, allocations: 49.61 kB / 0.9545 GB, free: 4.352 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.0002368/0.9943, allocations: 147 kB / 0.9546 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001631/0.9945, allocations: 68.56 kB / 0.9547 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.9945, allocations: 0 / 0.9547 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.868e-05/0.9946, allocations: 37.48 kB / 0.9547 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002157/0.9948, allocations: 6.75 kB / 0.9547 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003252/0.9951, allocations: 194 kB / 0.9549 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001496/0.9953, allocations: 0.6932 MB / 0.9556 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.946e-05/0.9953, allocations: 5.281 kB / 0.9556 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.337e-05/0.9954, allocations: 13.12 kB / 0.9556 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of SimCode: time 3.6e-07/0.9954, allocations: 0 / 0.9556 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of Templates: time 0.004255/0.9996, allocations: 1.406 MB / 0.957 GB, free: 2.605 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