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.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.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.001689/0.001689, 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.001919/0.001919, allocations: 192.4 kB / 16.14 MB, free: 6.691 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.262/1.262, allocations: 222.9 MB / 239.8 MB, free: 4.641 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.345/2.345, allocations: 390.2 MB / 0.6643 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 63.89 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7219/0.7231, allocations: 140.4 MB / 0.949 GB, free: 9.043 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002286/0.7254, allocations: 1.491 MB / 0.9505 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000618/0.726, allocations: 414.8 kB / 0.9509 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.323e-05/0.7261, allocations: 4 kB / 0.9509 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.711e-05/0.7261, allocations: 0 / 0.9509 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.2e-05/0.7262, allocations: 5.312 kB / 0.9509 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003043/0.7265, allocations: 76.59 kB / 0.951 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.742e-05/0.7265, allocations: 21.55 kB / 0.951 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.594e-05/0.7266, allocations: 6.75 kB / 0.951 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.397e-05/0.7266, allocations: 12.05 kB / 0.951 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.243e-05/0.7267, allocations: 19.94 kB / 0.951 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.148e-05/0.7267, allocations: 1.188 kB / 0.951 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003031/0.727, allocations: 270.1 kB / 0.9513 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.257e-05/0.727, allocations: 4.75 kB / 0.9513 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.281e-05/0.7271, allocations: 14.2 kB / 0.9513 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001607/0.7272, allocations: 103.6 kB / 0.9514 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.237e-06/0.7272, allocations: 0 / 0.9514 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.002e-06/0.7272, allocations: 1.562 kB / 0.9514 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.818e-06/0.7272, allocations: 0 / 0.9514 GB, free: 7.23 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.000365/0.7276, allocations: 368.8 kB / 0.9518 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.7277, allocations: 10.09 kB / 0.9518 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.534e-05/0.7277, allocations: 30.75 kB / 0.9518 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.474e-05/0.7277, allocations: 7.75 kB / 0.9518 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.081e-05/0.7278, allocations: 173.8 kB / 0.952 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.616e-06/0.7278, allocations: 4.359 kB / 0.952 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.474e-06/0.7278, allocations: 1.844 kB / 0.952 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001525/0.728, allocations: 50.52 kB / 0.952 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.728, allocations: 3.938 kB / 0.952 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.728, allocations: 4 kB / 0.952 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.728, allocations: 1.219 kB / 0.952 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001508/0.7282, allocations: 38.45 kB / 0.9521 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000233/0.7284, allocations: 247 kB / 0.9523 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001116/0.7286, allocations: 47.22 kB / 0.9524 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.747e-05/0.7286, allocations: 23.5 kB / 0.9524 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005486/0.7292, allocations: 459.9 kB / 0.9528 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.398e-05/0.7292, allocations: 31.84 kB / 0.9529 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.7292, allocations: 0 / 0.9529 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003304/0.7296, allocations: 89.83 kB / 0.9529 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.693e-05/0.7296, allocations: 52.69 kB / 0.953 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.837e-05/0.7296, allocations: 105.2 kB / 0.9531 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.532e-06/0.7297, allocations: 29.7 kB / 0.9531 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.333e-05/0.7297, allocations: 85.48 kB / 0.9532 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.525e-05/0.7297, allocations: 5.219 kB / 0.9532 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.631e-05/0.7297, allocations: 20.03 kB / 0.9532 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.01e-05/0.7298, allocations: 316.4 kB / 0.9535 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.885e-05/0.7299, allocations: 12.52 kB / 0.9535 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.824e-05/0.7299, allocations: 22.64 kB / 0.9536 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001414/0.7301, allocations: 40.34 kB / 0.9536 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.7301, allocations: 3.938 kB / 0.9536 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001809/0.7303, allocations: 68.7 kB / 0.9537 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.7303, allocations: 5.75 kB / 0.9537 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.7303, allocations: 0 / 0.9537 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.7303, allocations: 5.594 kB / 0.9537 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.655e-05/0.7304, allocations: 9.953 kB / 0.9537 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.7304, allocations: 0 / 0.9537 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.421e-05/0.7305, allocations: 7.047 kB / 0.9537 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.799e-06/0.7305, allocations: 1.094 kB / 0.9537 GB, free: 4.84 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 4.33e-05/0.7305, allocations: 111.9 kB / 0.9538 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.456e-05/0.7305, allocations: 2 kB / 0.9538 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000208/0.7308, allocations: 75.97 kB / 0.9539 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.7308, allocations: 1.125 kB / 0.9539 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.7308, allocations: 4.188 kB / 0.9539 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.594e-06/0.7308, allocations: 0 / 0.9539 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001066/0.7309, allocations: 174.8 kB / 0.954 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.7309, allocations: 1.062 kB / 0.954 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.308e-05/0.731, allocations: 10.08 kB / 0.9541 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.731, allocations: 0 / 0.9541 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.731, allocations: 1.25 kB / 0.9541 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.731, allocations: 4.031 kB / 0.9541 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.731, allocations: 0 / 0.9541 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002006/0.7312, allocations: 164.6 kB / 0.9542 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.838e-05/0.7312, allocations: 78.33 kB / 0.9543 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.276e-05/0.7312, allocations: 1.031 kB / 0.9543 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.202e-05/0.7313, allocations: 15.83 kB / 0.9543 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.13e-05/0.7314, allocations: 1.219 kB / 0.9543 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-06/0.7314, allocations: 1.219 kB / 0.9543 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.24e-05/0.7314, allocations: 83.23 kB / 0.9544 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7314, allocations: 0 / 0.9544 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002179/0.7316, allocations: 13.41 kB / 0.9544 GB, free: 4.098 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.0004014/0.732, allocations: 0.7219 MB / 0.9551 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001855/0.7322, allocations: 37.08 kB / 0.9551 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.7322, allocations: 1.344 kB / 0.9551 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.612e-05/0.7323, allocations: 27.27 kB / 0.9552 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002533/0.7326, allocations: 2.5 kB / 0.9552 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003542/0.7329, allocations: 145.2 kB / 0.9553 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.81e-05/0.733, allocations: 0.6786 MB / 0.956 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.303e-05/0.7331, allocations: 5.484 kB / 0.956 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.686e-05/0.7331, allocations: 13 kB / 0.956 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.7331, allocations: 4.062 kB / 0.956 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.409/2.142, allocations: 1.396 MB / 0.9574 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001455/2.143, allocations: 203.3 kB / 0.9576 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.674/4.816, allocations: 0 / 0.9576 GB, free: 1.512 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