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.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: "" <> 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.001206/0.001207, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001254/0.001254, allocations: 189.3 kB / 16.25 MB, free: 6.152 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.248/1.248, allocations: 222.9 MB / 239.9 MB, free: 4.512 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.147/2.147, allocations: 390.2 MB / 0.6644 GB, free: 0.543 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 71.89 kB / 0.8122 GB, free: 14.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5488/0.5501, allocations: 140.4 MB / 0.9492 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.0017/0.5518, allocations: 0.6422 MB / 0.9499 GB, free: 8.715 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005106/0.5523, allocations: 319.7 kB / 0.9502 GB, free: 8.469 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.414e-05/0.5524, allocations: 0 / 0.9502 GB, free: 8.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.741e-05/0.5524, allocations: 0 / 0.9502 GB, free: 8.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.579e-06/0.5524, allocations: 0 / 0.9502 GB, free: 8.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004295/0.5529, allocations: 98.53 kB / 0.9503 GB, free: 8.418 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.695e-05/0.5529, allocations: 1.75 kB / 0.9503 GB, free: 8.418 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.009e-05/0.5529, allocations: 9.25 kB / 0.9503 GB, free: 8.41 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.338e-05/0.553, allocations: 1.594 kB / 0.9503 GB, free: 8.41 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 1.85e-05/0.553, allocations: 0 / 0.9503 GB, free: 8.41 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.757e-06/0.553, allocations: 0 / 0.9503 GB, free: 8.41 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003458/0.5534, allocations: 274.6 kB / 0.9505 GB, free: 8.258 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.147e-05/0.5534, allocations: 7.922 kB / 0.9506 GB, free: 8.25 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.593e-05/0.5534, allocations: 1.375 kB / 0.9506 GB, free: 8.25 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001447/0.5535, allocations: 83.36 kB / 0.9506 GB, free: 8.195 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.5536, allocations: 3.984 kB / 0.9506 GB, free: 8.191 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.343e-06/0.5536, allocations: 0 / 0.9506 GB, free: 8.191 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.5536, allocations: 1.375 kB / 0.9506 GB, free: 8.191 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.0002229/0.5538, allocations: 335.8 kB / 0.951 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.5538, allocations: 9.625 kB / 0.951 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.561e-05/0.5539, allocations: 30.75 kB / 0.951 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.249e-05/0.5539, allocations: 2.312 kB / 0.951 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.844e-05/0.554, allocations: 164.4 kB / 0.9512 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.554, allocations: 384 / 0.9512 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.033e-06/0.554, allocations: 5.688 kB / 0.9512 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.227e-05/0.5541, allocations: 27.64 kB / 0.9512 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.5541, allocations: 7.875 kB / 0.9512 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.182e-06/0.5541, allocations: 4 kB / 0.9512 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.5541, allocations: 1.375 kB / 0.9512 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.77e-05/0.5541, allocations: 1.375 kB / 0.9512 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.705e-05/0.5542, allocations: 147 kB / 0.9513 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 2.937e-05/0.5543, allocations: 19.95 kB / 0.9514 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.277e-05/0.5543, allocations: 6.234 kB / 0.9514 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003784/0.5547, allocations: 428.9 kB / 0.9518 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.595e-05/0.5547, allocations: 31.94 kB / 0.9518 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.753e-06/0.5547, allocations: 0 / 0.9518 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001346/0.5548, allocations: 47.05 kB / 0.9519 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.839e-05/0.5549, allocations: 51.41 kB / 0.9519 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.327e-05/0.5549, allocations: 91.36 kB / 0.952 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.809e-06/0.5549, allocations: 29.7 kB / 0.952 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.266e-06/0.5549, allocations: 80.14 kB / 0.9521 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.672e-05/0.5549, allocations: 5.281 kB / 0.9521 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.128e-05/0.555, allocations: 15.09 kB / 0.9521 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.778e-05/0.555, allocations: 310.8 kB / 0.9524 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.586e-06/0.555, allocations: 1.375 kB / 0.9524 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.092e-06/0.555, allocations: 1.375 kB / 0.9524 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.284e-05/0.555, allocations: 15.61 kB / 0.9524 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.5551, allocations: 0 / 0.9524 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.689e-05/0.5551, allocations: 35.19 kB / 0.9525 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.5551, allocations: 5.25 kB / 0.9525 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.5551, allocations: 5.031 kB / 0.9525 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.5552, allocations: 0 / 0.9525 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.873e-05/0.5552, allocations: 2.406 kB / 0.9525 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.379e-06/0.5552, allocations: 0 / 0.9525 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.718e-06/0.5552, allocations: 7.938 kB / 0.9525 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.418e-06/0.5552, allocations: 1.375 kB / 0.9525 GB, free: 6.059 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.994e-05/0.5553, allocations: 115.3 kB / 0.9526 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.026e-05/0.5553, allocations: 0 / 0.9526 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.701e-05/0.5554, allocations: 52.81 kB / 0.9526 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.5554, allocations: 0 / 0.9526 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.5554, allocations: 4 kB / 0.9526 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.5554, allocations: 1.375 kB / 0.9526 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.824e-05/0.5555, allocations: 150.8 kB / 0.9528 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.5555, allocations: 4.031 kB / 0.9528 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.228e-05/0.5555, allocations: 1.438 kB / 0.9528 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.5555, allocations: 1.469 kB / 0.9528 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.791e-06/0.5555, allocations: 3.938 kB / 0.9528 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.5555, allocations: 0 / 0.9528 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.5555, allocations: 1.625 kB / 0.9528 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.075e-05/0.5556, allocations: 58.75 kB / 0.9529 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.337e-05/0.5556, allocations: 77.11 kB / 0.9529 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.908e-06/0.5556, allocations: 9.188 kB / 0.9529 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.564e-06/0.5556, allocations: 4 kB / 0.9529 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.939e-06/0.5556, allocations: 1.062 kB / 0.9529 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.5556, allocations: 1.094 kB / 0.9529 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.056e-05/0.5556, allocations: 75.28 kB / 0.953 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8e-08/0.5557, allocations: 0 / 0.953 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001984/0.5559, allocations: 8.812 kB / 0.953 GB, free: 5.43 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.0002637/0.5561, allocations: 0.6163 MB / 0.9536 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 6.512e-05/0.5562, allocations: 11.36 kB / 0.9536 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.5562, allocations: 1.438 kB / 0.9536 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.901e-06/0.5562, allocations: 1.5 kB / 0.9536 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001266/0.5563, allocations: 1.25 kB / 0.9536 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002325/0.5566, allocations: 108.2 kB / 0.9537 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.363e-05/0.5567, allocations: 0.6819 MB / 0.9544 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.645e-05/0.5567, allocations: 1.875 kB / 0.9544 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.276e-05/0.5567, allocations: 7.438 kB / 0.9544 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.5567, allocations: 0 / 0.9544 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01041/0.5671, allocations: 1.08 MB / 0.9555 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001303/0.5673, allocations: 214.1 kB / 0.9557 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.493/2.06, allocations: 0 / 0.9557 GB, free: 3.145 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