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.001283/0.001283, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001278/0.001278, allocations: 195 kB / 16.14 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.286/1.286, allocations: 222.9 MB / 239.8 MB, free: 4.586 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.248/2.248, allocations: 390.2 MB / 0.6643 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 63.91 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5545/0.5558, allocations: 140.4 MB / 0.949 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001638/0.5575, allocations: 0.6525 MB / 0.9497 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000592/0.5581, allocations: 346.3 kB / 0.95 GB, free: 8.406 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.178e-05/0.5581, allocations: 1.125 kB / 0.95 GB, free: 8.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.86e-05/0.5582, allocations: 3.938 kB / 0.95 GB, free: 8.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.528e-06/0.5582, allocations: 0 / 0.95 GB, free: 8.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000327/0.5585, allocations: 74.84 kB / 0.9501 GB, free: 8.352 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.084e-05/0.5585, allocations: 2.594 kB / 0.9501 GB, free: 8.352 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.631e-05/0.5586, allocations: 0 / 0.9501 GB, free: 8.352 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.318e-05/0.5586, allocations: 1.344 kB / 0.9501 GB, free: 8.352 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 1.945e-05/0.5586, allocations: 1.312 kB / 0.9501 GB, free: 8.352 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.02e-05/0.5586, allocations: 0 / 0.9501 GB, free: 8.352 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003425/0.559, allocations: 277.4 kB / 0.9504 GB, free: 8.195 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.608e-06/0.559, allocations: 3.938 kB / 0.9504 GB, free: 8.191 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.509e-05/0.559, allocations: 1.812 kB / 0.9504 GB, free: 8.191 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001413/0.5592, allocations: 82.83 kB / 0.9504 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.5592, allocations: 4 kB / 0.9504 GB, free: 8.133 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.91e-07/0.5592, allocations: 0 / 0.9504 GB, free: 8.133 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.747e-06/0.5592, allocations: 1.844 kB / 0.9505 GB, free: 8.133 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.0002277/0.5594, allocations: 334.8 kB / 0.9508 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.5595, allocations: 10.03 kB / 0.9508 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.426e-05/0.5595, allocations: 30.75 kB / 0.9508 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.431e-05/0.5595, allocations: 4.875 kB / 0.9508 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.843e-05/0.5596, allocations: 161.7 kB / 0.951 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.946e-06/0.5596, allocations: 384 / 0.951 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.924e-06/0.5596, allocations: 9.75 kB / 0.951 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.593e-05/0.5597, allocations: 27.36 kB / 0.951 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.5597, allocations: 3.938 kB / 0.951 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.143e-06/0.5597, allocations: 5.203 kB / 0.951 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.5597, allocations: 0 / 0.951 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.926e-05/0.5598, allocations: 5.156 kB / 0.951 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.69e-05/0.5599, allocations: 142.9 kB / 0.9512 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.017e-05/0.5599, allocations: 20.8 kB / 0.9512 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.294e-05/0.5599, allocations: 10.3 kB / 0.9512 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000395/0.5603, allocations: 421.2 kB / 0.9516 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.542e-05/0.5603, allocations: 34.56 kB / 0.9516 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.5603, allocations: 1.531 kB / 0.9516 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001239/0.5605, allocations: 46.06 kB / 0.9517 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.907e-05/0.5605, allocations: 53.62 kB / 0.9517 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.47e-05/0.5605, allocations: 89.86 kB / 0.9518 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.29e-06/0.5605, allocations: 25.7 kB / 0.9518 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.766e-06/0.5605, allocations: 80.14 kB / 0.9519 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.369e-05/0.5606, allocations: 3.906 kB / 0.9519 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.117e-05/0.5606, allocations: 15.75 kB / 0.9519 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.07e-05/0.5606, allocations: 312.8 kB / 0.9522 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.817e-06/0.5606, allocations: 4.125 kB / 0.9522 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.502e-06/0.5607, allocations: 5.75 kB / 0.9522 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.068e-05/0.5607, allocations: 11.5 kB / 0.9522 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.5607, allocations: 0 / 0.9522 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.279e-05/0.5607, allocations: 34.89 kB / 0.9523 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.5608, allocations: 4.656 kB / 0.9523 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.5608, allocations: 5.344 kB / 0.9523 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.5608, allocations: 0 / 0.9523 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.469e-05/0.5608, allocations: 6.656 kB / 0.9523 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.5608, allocations: 4 kB / 0.9523 GB, free: 6 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.486e-06/0.5608, allocations: 0 / 0.9523 GB, free: 6 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/0.5609, allocations: 1.125 kB / 0.9523 GB, free: 6 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.757e-05/0.5609, allocations: 114.8 kB / 0.9524 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.78e-05/0.5609, allocations: 1.375 kB / 0.9524 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.561e-05/0.561, allocations: 41.36 kB / 0.9524 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.561, allocations: 0 / 0.9524 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.561, allocations: 5.219 kB / 0.9524 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-06/0.561, allocations: 0 / 0.9524 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.632e-05/0.5611, allocations: 147 kB / 0.9526 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.5611, allocations: 3.938 kB / 0.9526 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.209e-05/0.5611, allocations: 9.375 kB / 0.9526 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.5611, allocations: 1.75 kB / 0.9526 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.5611, allocations: 3.938 kB / 0.9526 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.5611, allocations: 0 / 0.9526 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.5611, allocations: 1.125 kB / 0.9526 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.775e-05/0.5612, allocations: 59.72 kB / 0.9527 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.453e-05/0.5612, allocations: 77.11 kB / 0.9527 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.899e-06/0.5612, allocations: 9.234 kB / 0.9527 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.743e-06/0.5612, allocations: 0 / 0.9527 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.408e-06/0.5612, allocations: 0 / 0.9527 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.5612, allocations: 1.594 kB / 0.9527 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.191e-05/0.5613, allocations: 83.22 kB / 0.9528 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5613, allocations: 0 / 0.9528 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001879/0.5615, allocations: 9.625 kB / 0.9528 GB, free: 5.371 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.000278/0.5617, allocations: 0.6193 MB / 0.9534 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 6.088e-05/0.5618, allocations: 4.594 kB / 0.9534 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.5618, allocations: 0 / 0.9534 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.595e-06/0.5618, allocations: 9.281 kB / 0.9535 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001266/0.562, allocations: 7.172 kB / 0.9535 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000231/0.5622, allocations: 104.5 kB / 0.9536 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.185e-05/0.5623, allocations: 0.6744 MB / 0.9542 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.597e-05/0.5623, allocations: 1.656 kB / 0.9542 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.15e-05/0.5623, allocations: 7.438 kB / 0.9542 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.5623, allocations: 0 / 0.9542 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01079/0.5731, allocations: 1.051 MB / 0.9553 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001682/0.5733, allocations: 215 kB / 0.9555 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.114/2.688, allocations: 0 / 0.9555 GB, free: 3.102 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