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.00109/0.00109, allocations: 108 kB / 15.61 MB, free: 152 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.001091/0.001091, allocations: 194.9 kB / 16.53 MB, free: 6.664 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.286/1.286, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.39/2.39, allocations: 437.1 MB / 0.7104 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 76.12 kB / 0.8694 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5549/0.5564, allocations: 151.6 MB / 1.017 GB, free: 2.496 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.00156/0.558, allocations: 0.5741 MB / 1.018 GB, free: 1.918 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0005594/0.5586, allocations: 334.7 kB / 1.018 GB, free: 1.59 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.248e-05/0.5586, allocations: 0 / 1.018 GB, free: 1.59 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.014e-05/0.5586, allocations: 0 / 1.018 GB, free: 1.59 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.288e-06/0.5586, allocations: 0 / 1.018 GB, free: 1.59 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003959/0.559, allocations: 111.7 kB / 1.018 GB, free: 1.48 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 3.651e-05/0.5591, allocations: 8 kB / 1.018 GB, free: 1.473 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.367e-05/0.5591, allocations: 0 / 1.018 GB, free: 1.473 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.254e-05/0.5591, allocations: 0 / 1.018 GB, free: 1.473 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 1.657e-05/0.5591, allocations: 0 / 1.018 GB, free: 1.473 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 8.776e-06/0.5591, allocations: 0 / 1.018 GB, free: 1.473 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003464/0.5595, allocations: 271.7 kB / 1.019 GB, free: 1.207 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 9.308e-06/0.5595, allocations: 3.984 kB / 1.019 GB, free: 1.203 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 1.303e-05/0.5595, allocations: 0 / 1.019 GB, free: 1.203 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001463/0.5597, allocations: 87.86 kB / 1.019 GB, free: 1.117 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.5597, allocations: 0 / 1.019 GB, free: 1.117 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.362e-06/0.5597, allocations: 3.938 kB / 1.019 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.61e-06/0.5597, allocations: 8 kB / 1.019 GB, free: 1.105 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.0002566/0.56, allocations: 331.5 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.56, allocations: 12.02 kB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.711e-05/0.56, allocations: 30.75 kB / 1.019 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.006e-05/0.5601, allocations: 0.9375 kB / 1.019 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.447e-05/0.5602, allocations: 160.4 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.295e-06/0.5602, allocations: 8.375 kB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.153e-06/0.5602, allocations: 384 / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.6e-05/0.5603, allocations: 34.27 kB / 1.019 GB, free: 448 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.5603, allocations: 3.938 kB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.442e-06/0.5603, allocations: 0 / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.5603, allocations: 0 / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.805e-05/0.5603, allocations: 4 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001141/0.5604, allocations: 149.6 kB / 1.019 GB, free: 240 kB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 3.262e-05/0.5605, allocations: 18.61 kB / 1.019 GB, free: 212 kB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.373e-05/0.5605, allocations: 8.859 kB / 1.02 GB, free: 200 kB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004365/0.5609, allocations: 425.6 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.978e-05/0.561, allocations: 34.56 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.561, allocations: 0 / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001279/0.5611, allocations: 45.47 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.906e-05/0.5611, allocations: 55.53 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.615e-05/0.5612, allocations: 93.86 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 9.247e-06/0.5612, allocations: 25.7 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.18e-05/0.5612, allocations: 80.14 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.12e-05/0.5612, allocations: 0 / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.335e-05/0.5613, allocations: 9.719 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.31e-05/0.5614, allocations: 322.8 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.135e-06/0.5614, allocations: 0 / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.56e-06/0.5614, allocations: 0 / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.419e-05/0.5614, allocations: 12.92 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.5614, allocations: 3.938 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.207e-05/0.5615, allocations: 37.62 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.5615, allocations: 9.875 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.5615, allocations: 3.938 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.5615, allocations: 0 / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.256e-05/0.5616, allocations: 0 / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.957e-06/0.5616, allocations: 0 / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.28e-05/0.5616, allocations: 6.25 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.188e-06/0.5616, allocations: 4.031 kB / 1.021 GB, free: 14.89 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.423e-05/0.5617, allocations: 109.8 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.961e-05/0.5617, allocations: 0 / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.232e-05/0.5618, allocations: 44.75 kB / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.5618, allocations: 0 / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.5618, allocations: 0 / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.5618, allocations: 0 / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.382e-05/0.5619, allocations: 149.6 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.5619, allocations: 4 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.244e-05/0.5619, allocations: 4 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.5619, allocations: 0 / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.563e-06/0.5619, allocations: 3.938 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.5619, allocations: 0 / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.5619, allocations: 0 / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.216e-05/0.562, allocations: 57.14 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.106e-05/0.562, allocations: 85.12 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.1e-05/0.562, allocations: 7.938 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.753e-06/0.5621, allocations: 0 / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.101e-05/0.5621, allocations: 0 / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.536e-06/0.5621, allocations: 4 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.061e-05/0.5621, allocations: 75.28 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.5621, allocations: 0 / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000187/0.5623, allocations: 16 kB / 1.021 GB, free: 14.24 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.000337/0.5626, allocations: 0.6124 MB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 5.88e-05/0.5627, allocations: 7.984 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.5627, allocations: 4 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.368e-06/0.5627, allocations: 0 / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001237/0.5629, allocations: 11.81 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002726/0.5631, allocations: 118.8 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001829/0.5633, allocations: 0.6806 MB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.471e-05/0.5633, allocations: 0 / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.403e-05/0.5634, allocations: 7.438 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.5634, allocations: 0 / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.263/1.826, allocations: 1.158 MB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/12.18, allocations: 5.828 kB / 1.024 GB, free: 11.62 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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