Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_9_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.0007316/0.0007316, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.004248/0.004249, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.232/1.232, allocations: 223.3 MB / 240.3 MB, free: 5.336 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.132/2.132, allocations: 390.9 MB / 0.6664 GB, free: 2.406 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003725/0.0003726, allocations: 11.98 kB / 0.8161 GB, free: 13.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5795/0.5799, allocations: 142.4 MB / 0.9552 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.0006165/0.5805, allocations: 323.3 kB / 0.9555 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005948/0.5812, allocations: 337.2 kB / 0.9558 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.839e-06/0.5812, allocations: 0 / 0.9558 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.291e-05/0.5812, allocations: 1.094 kB / 0.9558 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.158e-06/0.5812, allocations: 0 / 0.9558 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003641/0.5816, allocations: 73.97 kB / 0.9559 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.303e-05/0.5816, allocations: 5.094 kB / 0.9559 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.078e-05/0.5817, allocations: 5 kB / 0.9559 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.304e-05/0.5817, allocations: 0.7812 kB / 0.9559 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.133e-05/0.5817, allocations: 4.812 kB / 0.9559 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.128e-06/0.5817, allocations: 1.094 kB / 0.9559 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003751/0.5821, allocations: 273 kB / 0.9562 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.04e-05/0.5821, allocations: 4.891 kB / 0.9562 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.961e-05/0.5822, allocations: 25.7 kB / 0.9562 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001496/0.5823, allocations: 83.86 kB / 0.9563 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.5823, allocations: 0 / 0.9563 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.542e-06/0.5823, allocations: 4 kB / 0.9563 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.467e-06/0.5824, allocations: 0.9375 kB / 0.9563 GB, free: 6.887 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0001895/0.5825, allocations: 330.3 kB / 0.9566 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.5826, allocations: 9.469 kB / 0.9566 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.581e-05/0.5826, allocations: 34.75 kB / 0.9566 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.964e-05/0.5827, allocations: 2 kB / 0.9566 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.029e-05/0.5827, allocations: 160.4 kB / 0.9568 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.168e-06/0.5827, allocations: 1.469 kB / 0.9568 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.392e-06/0.5827, allocations: 5.469 kB / 0.9568 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.733e-05/0.5828, allocations: 35.48 kB / 0.9568 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.204e-06/0.5828, allocations: 7.922 kB / 0.9568 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.322e-06/0.5828, allocations: 1.094 kB / 0.9568 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.5828, allocations: 0 / 0.9568 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.654e-05/0.5829, allocations: 1.094 kB / 0.9568 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.887e-05/0.5829, allocations: 148.3 kB / 0.957 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 2.637e-05/0.583, allocations: 15.98 kB / 0.957 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.319e-05/0.583, allocations: 14.22 kB / 0.957 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003514/0.5833, allocations: 428 kB / 0.9574 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.411e-05/0.5834, allocations: 31.47 kB / 0.9574 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.5834, allocations: 0 / 0.9574 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001245/0.5835, allocations: 39.69 kB / 0.9575 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.686e-05/0.5835, allocations: 55.53 kB / 0.9575 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.445e-05/0.5836, allocations: 90.98 kB / 0.9576 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.45e-06/0.5836, allocations: 25.7 kB / 0.9576 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.416e-06/0.5836, allocations: 80.14 kB / 0.9577 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.48e-05/0.5836, allocations: 9.188 kB / 0.9577 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.661e-05/0.5836, allocations: 9.719 kB / 0.9577 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.431e-05/0.5837, allocations: 311.7 kB / 0.958 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.506e-06/0.5837, allocations: 1.094 kB / 0.958 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.951e-06/0.5837, allocations: 8.875 kB / 0.958 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.077e-05/0.5837, allocations: 11.22 kB / 0.9581 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.5837, allocations: 1.219 kB / 0.9581 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.039e-05/0.5838, allocations: 30.8 kB / 0.9581 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.5838, allocations: 7.312 kB / 0.9581 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.5838, allocations: 3.938 kB / 0.9581 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.5838, allocations: 3.938 kB / 0.9581 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.486e-05/0.5839, allocations: 2.75 kB / 0.9581 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.5839, allocations: 0 / 0.9581 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.04e-05/0.5839, allocations: 8.094 kB / 0.9581 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.618e-06/0.5839, allocations: 1.125 kB / 0.9581 GB, free: 4.754 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 (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 3.65e-05/0.5839, allocations: 111.3 kB / 0.9582 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.242e-05/0.584, allocations: 3.984 kB / 0.9582 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.463e-05/0.584, allocations: 42.2 kB / 0.9583 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.584, allocations: 0 / 0.9583 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.5841, allocations: 1.5 kB / 0.9583 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.973e-06/0.5841, allocations: 0 / 0.9583 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.387e-05/0.5841, allocations: 158.9 kB / 0.9584 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.5841, allocations: 0 / 0.9584 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.214e-05/0.5841, allocations: 2.656 kB / 0.9584 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.5841, allocations: 0 / 0.9584 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.929e-06/0.5841, allocations: 3.938 kB / 0.9584 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.5842, allocations: 5.453 kB / 0.9584 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.5842, allocations: 0 / 0.9584 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.98e-05/0.5842, allocations: 63.09 kB / 0.9585 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.223e-05/0.5842, allocations: 78.3 kB / 0.9586 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.338e-06/0.5843, allocations: 3.938 kB / 0.9586 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.185e-06/0.5843, allocations: 5.031 kB / 0.9586 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.115e-05/0.5843, allocations: 0 / 0.9586 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-06/0.5843, allocations: 1.312 kB / 0.9586 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.007e-05/0.5843, allocations: 79.28 kB / 0.9586 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.5843, allocations: 0 / 0.9586 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002137/0.5845, allocations: 8.844 kB / 0.9587 GB, free: 4.125 MB / 0.7169 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.000262/0.5848, allocations: 0.6197 MB / 0.9593 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 4.924e-05/0.5849, allocations: 7.734 kB / 0.9593 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.5849, allocations: 1.125 kB / 0.9593 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.482e-06/0.5849, allocations: 2.406 kB / 0.9593 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001365/0.585, allocations: 2.719 kB / 0.9593 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002179/0.5852, allocations: 107.9 kB / 0.9594 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.545e-05/0.5853, allocations: 0.6741 MB / 0.96 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.609e-05/0.5853, allocations: 1.344 kB / 0.96 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.048e-05/0.5854, allocations: 7.438 kB / 0.96 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of SimCode: time 2.9e-07/0.5854, allocations: 1.375 kB / 0.96 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009611/0.595, allocations: 0.9939 MB / 0.961 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001523/0.5952, allocations: 207 kB / 0.9612 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.67/2.265, allocations: 0 / 0.9612 GB, free: 1.945 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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