Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.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.Examples.RegNonZeroPower,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_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.001327/0.001327, 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.001989/0.001989, allocations: 188.2 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.256/1.256, allocations: 222.9 MB / 239.9 MB, free: 4.508 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.109/2.109, allocations: 390.2 MB / 0.6644 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 59.91 kB / 0.8122 GB, free: 14.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6331/0.6343, allocations: 140.4 MB / 0.9492 GB, free: 9.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.001978/0.6363, allocations: 1.49 MB / 0.9507 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004887/0.6368, allocations: 391.1 kB / 0.9511 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.338e-05/0.6368, allocations: 1.344 kB / 0.9511 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.646e-05/0.6369, allocations: 3.938 kB / 0.9511 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.369e-05/0.6369, allocations: 0 / 0.9511 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003296/0.6372, allocations: 104.5 kB / 0.9512 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.579e-05/0.6373, allocations: 25.58 kB / 0.9512 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.533e-05/0.6374, allocations: 3.125 kB / 0.9512 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.231e-05/0.6374, allocations: 20.3 kB / 0.9512 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.758e-05/0.6374, allocations: 6.812 kB / 0.9512 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.052e-05/0.6374, allocations: 2.375 kB / 0.9512 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002752/0.6377, allocations: 277.2 kB / 0.9515 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.788e-06/0.6377, allocations: 7.938 kB / 0.9515 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.77e-05/0.6378, allocations: 14.48 kB / 0.9515 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001364/0.6379, allocations: 103.5 kB / 0.9516 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.6379, allocations: 0 / 0.9516 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.272e-06/0.6379, allocations: 1.406 kB / 0.9516 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.648e-06/0.6379, allocations: 0 / 0.9516 GB, free: 7.277 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000309/0.6382, allocations: 373.2 kB / 0.952 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.994e-05/0.6383, allocations: 9.156 kB / 0.952 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.265e-05/0.6383, allocations: 32.09 kB / 0.952 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.843e-05/0.6383, allocations: 5.906 kB / 0.952 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.651e-05/0.6384, allocations: 170.7 kB / 0.9522 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.516e-06/0.6384, allocations: 1.938 kB / 0.9522 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.522e-06/0.6384, allocations: 384 / 0.9522 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001371/0.6386, allocations: 51.23 kB / 0.9522 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-06/0.6386, allocations: 7.938 kB / 0.9522 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.843e-06/0.6386, allocations: 0 / 0.9522 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.356e-06/0.6386, allocations: 3.938 kB / 0.9522 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001562/0.6388, allocations: 39.14 kB / 0.9523 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000197/0.639, allocations: 246.2 kB / 0.9525 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001061/0.6391, allocations: 47.81 kB / 0.9525 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.135e-05/0.6392, allocations: 19.5 kB / 0.9526 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005247/0.6397, allocations: 463.7 kB / 0.953 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.253e-05/0.6397, allocations: 31.59 kB / 0.953 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.6397, allocations: 1.031 kB / 0.953 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003065/0.64, allocations: 89.61 kB / 0.9531 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.98e-05/0.6401, allocations: 52.53 kB / 0.9532 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.838e-05/0.6401, allocations: 109.1 kB / 0.9533 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.151e-06/0.6401, allocations: 25.7 kB / 0.9533 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.079e-05/0.6401, allocations: 81.58 kB / 0.9534 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.397e-05/0.6402, allocations: 13.09 kB / 0.9534 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.428e-05/0.6402, allocations: 12.88 kB / 0.9534 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.231e-05/0.6402, allocations: 310.8 kB / 0.9537 GB, free: 5 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.424e-05/0.6403, allocations: 22.28 kB / 0.9537 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.368e-05/0.6404, allocations: 16.89 kB / 0.9537 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001279/0.6405, allocations: 41.17 kB / 0.9538 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.6405, allocations: 3.938 kB / 0.9538 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001706/0.6407, allocations: 68.78 kB / 0.9538 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.248e-06/0.6407, allocations: 5.094 kB / 0.9539 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.6407, allocations: 5.375 kB / 0.9539 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.819e-06/0.6407, allocations: 0 / 0.9539 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.994e-05/0.6408, allocations: 10.58 kB / 0.9539 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.6408, allocations: 3.984 kB / 0.9539 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.128e-05/0.6409, allocations: 7.547 kB / 0.9539 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.839e-06/0.6409, allocations: 0.9688 kB / 0.9539 GB, free: 4.887 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 (2): * Single equations (assignments): 2 * 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.683e-05/0.6409, allocations: 115.6 kB / 0.954 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.264e-05/0.6409, allocations: 2.281 kB / 0.954 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001882/0.6411, allocations: 75.41 kB / 0.9541 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.6412, allocations: 1.312 kB / 0.9541 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.6412, allocations: 0 / 0.9541 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.6412, allocations: 5.531 kB / 0.9541 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.63e-05/0.6413, allocations: 174 kB / 0.9542 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.6413, allocations: 0 / 0.9542 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.245e-05/0.6413, allocations: 15.5 kB / 0.9543 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.6413, allocations: 0 / 0.9543 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.941e-06/0.6413, allocations: 4.031 kB / 0.9543 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.6414, allocations: 1.906 kB / 0.9543 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.6414, allocations: 0 / 0.9543 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001848/0.6415, allocations: 163.6 kB / 0.9544 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.338e-05/0.6416, allocations: 86.58 kB / 0.9545 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.012e-05/0.6416, allocations: 0 / 0.9545 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.884e-05/0.6417, allocations: 12.58 kB / 0.9545 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.947e-05/0.6417, allocations: 1.094 kB / 0.9545 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-06/0.6417, allocations: 0 / 0.9545 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.962e-05/0.6417, allocations: 84.72 kB / 0.9546 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of sort global known variables: time 6.11e-07/0.6417, allocations: 0 / 0.9546 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000214/0.6419, allocations: 24.05 kB / 0.9546 GB, free: 4.121 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 (2): * Single equations (assignments): 2 * 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.0003493/0.6423, allocations: 0.7114 MB / 0.9553 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001805/0.6425, allocations: 41.3 kB / 0.9553 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.6425, allocations: 0 / 0.9553 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.524e-05/0.6426, allocations: 23.8 kB / 0.9554 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00024/0.6428, allocations: 1.844 kB / 0.9554 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000313/0.6431, allocations: 144.8 kB / 0.9555 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.66e-05/0.6432, allocations: 0.6823 MB / 0.9562 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.045e-05/0.6433, allocations: 1.688 kB / 0.9562 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.382e-05/0.6433, allocations: 11.42 kB / 0.9562 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.6433, allocations: 5.688 kB / 0.9562 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009602/0.6529, allocations: 1.44 MB / 0.9576 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001148/0.653, allocations: 199 kB / 0.9578 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.55/2.204, allocations: 1.281 kB / 0.9578 GB, free: 1.539 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_RegNonZeroPower_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_RegNonZeroPower.fmu > Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches