Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 197.5 kB / 16.53 MB, free: 6.668 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.358/1.358, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.53/2.53, allocations: 437 MB / 0.7104 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 75.89 kB / 0.8694 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5683/0.5698, allocations: 151.6 MB / 1.017 GB, free: 2.477 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001603/0.5715, allocations: 0.5765 MB / 1.018 GB, free: 1.895 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0005747/0.5721, allocations: 334.8 kB / 1.018 GB, free: 1.566 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.476e-05/0.5721, allocations: 0 / 1.018 GB, free: 1.566 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.454e-05/0.5721, allocations: 0 / 1.018 GB, free: 1.566 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.699e-06/0.5721, allocations: 0 / 1.018 GB, free: 1.566 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004039/0.5725, allocations: 107.6 kB / 1.018 GB, free: 1.461 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 3.692e-05/0.5726, allocations: 4 kB / 1.018 GB, free: 1.457 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.041e-05/0.5726, allocations: 3.984 kB / 1.018 GB, free: 1.453 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.37e-05/0.5726, allocations: 4 kB / 1.018 GB, free: 1.449 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.305e-05/0.5727, allocations: 0 / 1.018 GB, free: 1.449 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.063e-05/0.5727, allocations: 0 / 1.018 GB, free: 1.449 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003597/0.573, allocations: 271.7 kB / 1.019 GB, free: 1.184 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 8.796e-06/0.5731, allocations: 0 / 1.019 GB, free: 1.184 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 1.463e-05/0.5731, allocations: 0 / 1.019 GB, free: 1.184 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001535/0.5732, allocations: 87.84 kB / 1.019 GB, free: 1.098 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.5732, allocations: 8 kB / 1.019 GB, free: 1.09 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.252e-06/0.5733, allocations: 3.938 kB / 1.019 GB, free: 1.086 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.5733, allocations: 0 / 1.019 GB, free: 1.086 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002658/0.5735, allocations: 331.5 kB / 1.019 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.5736, allocations: 12.03 kB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.691e-05/0.5736, allocations: 30.75 kB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.48e-05/0.5737, allocations: 0.9375 kB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.219e-05/0.5737, allocations: 164.4 kB / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.618e-06/0.5738, allocations: 384 / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.1e-06/0.5738, allocations: 4.375 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.752e-05/0.5738, allocations: 34.2 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.5739, allocations: 7.922 kB / 1.019 GB, free: 420 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.5739, allocations: 4 kB / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.5739, allocations: 0 / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.695e-05/0.5739, allocations: 0 / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001273/0.574, allocations: 149.7 kB / 1.019 GB, free: 216 kB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 3.255e-05/0.5741, allocations: 14.58 kB / 1.019 GB, free: 192 kB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.473e-05/0.5741, allocations: 8.859 kB / 1.019 GB, free: 180 kB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004613/0.5746, allocations: 425.6 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.247e-05/0.5746, allocations: 34.5 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.5746, allocations: 4 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001316/0.5747, allocations: 45.55 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.186e-05/0.5748, allocations: 51.41 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.43e-05/0.5748, allocations: 93.84 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.171e-05/0.5748, allocations: 25.7 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.032e-05/0.5749, allocations: 80.14 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.074e-05/0.5749, allocations: 0 / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.428e-05/0.5749, allocations: 13.72 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.575, allocations: 310.8 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.104e-05/0.575, allocations: 8.125 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.933e-06/0.5751, allocations: 4 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.421e-05/0.5751, allocations: 8.797 kB / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.5751, allocations: 0 / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.338e-05/0.5752, allocations: 41.69 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.5752, allocations: 7.938 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.5752, allocations: 3.938 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.015e-05/0.5752, allocations: 0 / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.352e-05/0.5752, allocations: 4 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.5753, allocations: 4.094 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.261e-05/0.5753, allocations: 2.25 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.228e-06/0.5753, allocations: 0 / 1.021 GB, free: 14.87 MB / 0.7794 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 (1): * Single equations (assignments): 1 * 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.437e-05/0.5753, allocations: 109.8 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.935e-05/0.5754, allocations: 4 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.49e-05/0.5754, allocations: 48.62 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.5755, allocations: 0 / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.5755, allocations: 4.031 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.5755, allocations: 0 / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.306e-05/0.5755, allocations: 145.7 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.5756, allocations: 0 / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.257e-05/0.5756, allocations: 3.984 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.5756, allocations: 0 / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.513e-06/0.5756, allocations: 3.938 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/0.5756, allocations: 7.984 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.5756, allocations: 0 / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.861e-05/0.5757, allocations: 61.08 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.785e-05/0.5757, allocations: 77.11 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.201e-05/0.5757, allocations: 11.92 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.197e-06/0.5757, allocations: 0 / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.548e-06/0.5757, allocations: 0 / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-06/0.5758, allocations: 0 / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.798e-05/0.5758, allocations: 75.28 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5758, allocations: 0 / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000188/0.576, allocations: 12 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (1): * Single equations (assignments): 1 * 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.0003505/0.5763, allocations: 0.6125 MB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 5.823e-05/0.5764, allocations: 7.938 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.5764, allocations: 0 / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.855e-06/0.5764, allocations: 4 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001236/0.5766, allocations: 8.141 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000242/0.5768, allocations: 118.6 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001844/0.577, allocations: 0.669 MB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.412e-05/0.577, allocations: 0 / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.357e-05/0.577, allocations: 15.42 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of SimCode: time 2.6e-07/0.577, allocations: 0 / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01661/0.5937, allocations: 1.157 MB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.872/7.465, allocations: 17.34 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y Variables in the result:time,y