Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_latest_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.001783/0.001783, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002219/0.002219, allocations: 188.8 kB / 16.25 MB, free: 6.633 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.47/1.47, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.751/2.751, allocations: 461.9 MB / 0.7344 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 72.53 kB / 0.8987 GB, free: 37.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3436, allocations: 157.4 MB / 1.052 GB, free: 8.684 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001835/0.3455, allocations: 0.6542 MB / 1.053 GB, free: 8.023 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006315/0.3461, allocations: 334.7 kB / 1.053 GB, free: 7.695 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.167e-05/0.3462, allocations: 0 / 1.053 GB, free: 7.695 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.616e-05/0.3462, allocations: 0 / 1.053 GB, free: 7.695 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.829e-06/0.3462, allocations: 0 / 1.053 GB, free: 7.695 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004462/0.3467, allocations: 99.33 kB / 1.053 GB, free: 7.602 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.27e-05/0.3467, allocations: 4 kB / 1.053 GB, free: 7.598 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.721e-05/0.3468, allocations: 4 kB / 1.053 GB, free: 7.594 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.198e-05/0.3468, allocations: 0 / 1.053 GB, free: 7.594 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.006e-05/0.3468, allocations: 4 kB / 1.053 GB, free: 7.59 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.818e-06/0.3468, allocations: 0 / 1.053 GB, free: 7.59 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003874/0.3472, allocations: 271.7 kB / 1.054 GB, free: 7.324 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.426e-06/0.3472, allocations: 0 / 1.054 GB, free: 7.324 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 1.468e-05/0.3472, allocations: 0 / 1.054 GB, free: 7.324 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001684/0.3474, allocations: 91.78 kB / 1.054 GB, free: 7.234 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.3474, allocations: 0 / 1.054 GB, free: 7.234 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.103e-06/0.3474, allocations: 4 kB / 1.054 GB, free: 7.23 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.3474, allocations: 0 / 1.054 GB, free: 7.23 MB / 0.8106 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.0002887/0.3477, allocations: 335.6 kB / 1.054 GB, free: 6.852 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.3478, allocations: 12.61 kB / 1.054 GB, free: 6.84 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.283e-05/0.3478, allocations: 30.75 kB / 1.054 GB, free: 6.801 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.787e-05/0.3479, allocations: 0.9375 kB / 1.054 GB, free: 6.801 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.348, allocations: 164.3 kB / 1.054 GB, free: 6.602 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.348, allocations: 4.375 kB / 1.054 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.871e-06/0.348, allocations: 384 / 1.054 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.881e-05/0.3481, allocations: 26.27 kB / 1.054 GB, free: 6.566 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.3481, allocations: 7.938 kB / 1.054 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.302e-06/0.3481, allocations: 0 / 1.054 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.3481, allocations: 0 / 1.054 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.792e-05/0.3482, allocations: 4 kB / 1.054 GB, free: 6.555 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001339/0.3483, allocations: 149.7 kB / 1.055 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 3.865e-05/0.3483, allocations: 22.55 kB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.495e-05/0.3484, allocations: 4.859 kB / 1.055 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005264/0.3489, allocations: 429.6 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.3489, allocations: 30.56 kB / 1.055 GB, free: 5.77 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.111e-05/0.349, allocations: 3.984 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001351/0.3491, allocations: 37.62 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.925e-05/0.3491, allocations: 55.41 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.399e-05/0.3492, allocations: 97.98 kB / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.3492, allocations: 25.7 kB / 1.055 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.352e-05/0.3492, allocations: 80.14 kB / 1.055 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.555e-05/0.3493, allocations: 3.938 kB / 1.055 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.739e-05/0.3493, allocations: 17.66 kB / 1.055 GB, free: 5.41 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001024/0.3494, allocations: 310.8 kB / 1.056 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.889e-06/0.3494, allocations: 3.938 kB / 1.056 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.711e-06/0.3494, allocations: 0 / 1.056 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.954e-05/0.3495, allocations: 16.92 kB / 1.056 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3495, allocations: 0 / 1.056 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 7.679e-05/0.3495, allocations: 33.69 kB / 1.056 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.3496, allocations: 8 kB / 1.056 GB, free: 5.027 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.3496, allocations: 7.922 kB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.909e-06/0.3496, allocations: 0 / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.588e-05/0.3496, allocations: 0 / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.3496, allocations: 3.938 kB / 1.056 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.062e-05/0.3497, allocations: 4.281 kB / 1.056 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.3497, allocations: 32 / 1.056 GB, free: 5.012 MB / 0.8106 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.965e-05/0.3497, allocations: 109.8 kB / 1.056 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.991e-05/0.3498, allocations: 0 / 1.056 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.841e-05/0.3499, allocations: 52.69 kB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3499, allocations: 0 / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.3499, allocations: 0 / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.3499, allocations: 0 / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.121e-05/0.35, allocations: 145.7 kB / 1.056 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.35, allocations: 8.031 kB / 1.056 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.65e-05/0.35, allocations: 4 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.35, allocations: 0 / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.723e-06/0.35, allocations: 3.938 kB / 1.056 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.35, allocations: 0 / 1.056 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.35, allocations: 0 / 1.056 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001037/0.3501, allocations: 61.08 kB / 1.056 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.508e-05/0.3502, allocations: 81.09 kB / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.125e-05/0.3502, allocations: 7.969 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.614e-06/0.3502, allocations: 0 / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.168e-06/0.3502, allocations: 0 / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.3502, allocations: 4 kB / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.635e-05/0.3503, allocations: 75.28 kB / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3503, allocations: 0 / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002116/0.3505, allocations: 12 kB / 1.056 GB, free: 4.359 MB / 0.8106 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.0004138/0.3509, allocations: 0.6085 MB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 7.173e-05/0.351, allocations: 11.92 kB / 1.057 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.351, allocations: 0 / 1.057 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.979e-06/0.351, allocations: 11.94 kB / 1.057 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000135/0.3512, allocations: 0 / 1.057 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002772/0.3514, allocations: 114.7 kB / 1.057 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002722/0.3517, allocations: 0.6768 MB / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.36e-05/0.3518, allocations: 0 / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.103e-05/0.3518, allocations: 7.438 kB / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of SimCode: time 2.545e-06/0.3518, allocations: 0 / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0126/0.3644, allocations: 1.108 MB / 1.059 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002362/0.3647, allocations: 214.1 kB / 1.059 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.755/3.12, allocations: 1.125 kB / 1.059 GB, free: 1.605 MB / 0.8106 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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