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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001374/0.001374, allocations: 99.94 kB / 15.05 MB, free: 1.105 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.001928/0.001928, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.502/2.502, allocations: 390.2 MB / 0.6653 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003879/0.0003879, allocations: 8 kB / 0.8145 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9174/0.9178, allocations: 142.3 MB / 0.9535 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.0008047/0.9186, allocations: 346.1 kB / 0.9539 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005649/0.9192, allocations: 328.1 kB / 0.9542 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.079e-05/0.9193, allocations: 0 / 0.9542 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.053e-05/0.9193, allocations: 0 / 0.9542 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.766e-05/0.9193, allocations: 4.938 kB / 0.9542 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003289/0.9197, allocations: 77.66 kB / 0.9542 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.936e-05/0.9197, allocations: 13.59 kB / 0.9543 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.36e-05/0.9198, allocations: 1.156 kB / 0.9543 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.693e-05/0.9198, allocations: 13.75 kB / 0.9543 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.386e-05/0.9199, allocations: 15.05 kB / 0.9543 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.364e-05/0.9199, allocations: 1.688 kB / 0.9543 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003318/0.9202, allocations: 261.4 kB / 0.9545 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.347e-05/0.9202, allocations: 8.859 kB / 0.9545 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.12e-05/0.9203, allocations: 36.17 kB / 0.9546 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001129/0.9204, allocations: 57.92 kB / 0.9546 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.9204, allocations: 0 / 0.9546 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.884e-06/0.9204, allocations: 0 / 0.9546 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.048e-06/0.9204, allocations: 1.031 kB / 0.9546 GB, free: 7.254 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.0003369/0.9208, allocations: 351.6 kB / 0.955 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.9208, allocations: 13.75 kB / 0.955 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.509e-05/0.9209, allocations: 6.109 kB / 0.955 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.995e-05/0.921, allocations: 165.1 kB / 0.9551 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.921, allocations: 1.188 kB / 0.9552 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.421e-05/0.921, allocations: 7.688 kB / 0.9552 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001162/0.9211, allocations: 47.34 kB / 0.9552 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.9212, allocations: 5.219 kB / 0.9552 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.9212, allocations: 4 kB / 0.9552 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.9212, allocations: 5.438 kB / 0.9552 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.037e-05/0.9212, allocations: 18.75 kB / 0.9552 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001445/0.9214, allocations: 173.5 kB / 0.9554 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.745e-05/0.9215, allocations: 59.27 kB / 0.9555 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000606/0.9221, allocations: 467.9 kB / 0.9559 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.9221, allocations: 35.72 kB / 0.9559 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.9221, allocations: 1.312 kB / 0.9559 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001165/0.9233, allocations: 0.5825 MB / 0.9565 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.46e-05/0.9233, allocations: 57.05 kB / 0.9566 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.022e-05/0.9234, allocations: 97.95 kB / 0.9567 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.135e-05/0.9234, allocations: 27.08 kB / 0.9567 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.894e-05/0.9234, allocations: 84.14 kB / 0.9568 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.199e-05/0.9235, allocations: 40.89 kB / 0.9568 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-06/0.9235, allocations: 4 kB / 0.9568 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.318e-05/0.9235, allocations: 320.2 kB / 0.9571 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.644e-05/0.9236, allocations: 15.62 kB / 0.9571 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.847e-05/0.9236, allocations: 28.77 kB / 0.9572 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.565e-05/0.9237, allocations: 21.22 kB / 0.9572 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.9237, allocations: 0 / 0.9572 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001413/0.9238, allocations: 102.8 kB / 0.9573 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.9239, allocations: 4.344 kB / 0.9573 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.9239, allocations: 3.938 kB / 0.9573 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.9239, allocations: 5.375 kB / 0.9573 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.924, allocations: 18.75 kB / 0.9573 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.924, allocations: 0 / 0.9573 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.5e-05/0.924, allocations: 13.34 kB / 0.9573 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-06/0.9241, allocations: 1.594 kB / 0.9573 GB, free: 4.512 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.431e-05/0.9241, allocations: 116.8 kB / 0.9574 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.745e-05/0.9242, allocations: 6.938 kB / 0.9574 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001897/0.9244, allocations: 95.48 kB / 0.9575 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.9244, allocations: 5.125 kB / 0.9575 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.9244, allocations: 0.875 kB / 0.9575 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.9244, allocations: 3.984 kB / 0.9575 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003542/0.9247, allocations: 364.2 kB / 0.9579 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.9248, allocations: 1.062 kB / 0.9579 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.9249, allocations: 17.72 kB / 0.9579 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.9249, allocations: 3.938 kB / 0.9579 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.9249, allocations: 2.031 kB / 0.9579 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.9249, allocations: 3.984 kB / 0.9579 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.9249, allocations: 5.016 kB / 0.9579 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002399/0.9252, allocations: 224.7 kB / 0.9581 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.944e-05/0.9252, allocations: 88.84 kB / 0.9582 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.644e-05/0.9252, allocations: 1.188 kB / 0.9582 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.793e-05/0.9253, allocations: 6.312 kB / 0.9582 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.271e-05/0.9253, allocations: 11.28 kB / 0.9582 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-06/0.9254, allocations: 3.188 kB / 0.9582 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.329e-05/0.9254, allocations: 77.62 kB / 0.9583 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9254, allocations: 4.062 kB / 0.9583 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002831/0.9257, allocations: 48.33 kB / 0.9584 GB, free: 3.547 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002688/0.9259, allocations: 139.9 kB / 0.9585 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001515/0.9261, allocations: 64.72 kB / 0.9586 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.9261, allocations: 2.656 kB / 0.9586 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.715e-05/0.9262, allocations: 38.89 kB / 0.9586 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000165/0.9263, allocations: 4.453 kB / 0.9586 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003743/0.9267, allocations: 192.5 kB / 0.9588 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001458/0.9269, allocations: 0.6889 MB / 0.9595 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.93e-05/0.9269, allocations: 10.45 kB / 0.9595 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.385e-05/0.927, allocations: 20.56 kB / 0.9595 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.927, allocations: 0 / 0.9595 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of Templates: time 0.003955/0.9309, allocations: 1.345 MB / 0.9608 GB, free: 1.828 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","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches