Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 104.6 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 187.8 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 225.6 MB / 247.8 MB, free: 3.75 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.896/2.896, allocations: 497.2 MB / 0.7812 GB, free: 12.01 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Examples.RegNonZeroPower,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 67.89 kB / 1.134 GB, free: 13.21 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.112/1.114, allocations: 173.9 MB / 1.304 GB, free: 32.09 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002512/1.117, allocations: 1.447 MB / 1.305 GB, free: 31.09 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0007748/1.118, allocations: 387.2 kB / 1.306 GB, free: 30.83 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.511e-05/1.118, allocations: 2.938 kB / 1.306 GB, free: 30.83 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.096e-05/1.118, allocations: 3.938 kB / 1.306 GB, free: 30.83 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 5.726e-05/1.118, allocations: 7.938 kB / 1.306 GB, free: 30.82 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004694/1.118, allocations: 115.1 kB / 1.306 GB, free: 30.78 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 7.77e-05/1.118, allocations: 26.45 kB / 1.306 GB, free: 30.77 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/1.118, allocations: 8.141 kB / 1.306 GB, free: 30.77 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 5.582e-05/1.118, allocations: 6.562 kB / 1.306 GB, free: 30.76 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.603e-05/1.118, allocations: 17.97 kB / 1.306 GB, free: 30.75 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.69e-05/1.118, allocations: 2.625 kB / 1.306 GB, free: 30.75 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003869/1.119, allocations: 276.2 kB / 1.306 GB, free: 30.68 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.5e-05/1.119, allocations: 11.94 kB / 1.306 GB, free: 30.67 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.439e-05/1.119, allocations: 10.75 kB / 1.306 GB, free: 30.66 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002375/1.119, allocations: 113.1 kB / 1.306 GB, free: 30.62 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/1.119, allocations: 3.938 kB / 1.306 GB, free: 30.62 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.375e-06/1.119, allocations: 0 / 1.306 GB, free: 30.62 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.174e-06/1.119, allocations: 0 / 1.306 GB, free: 30.62 MB / 1.061 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.0005/1.12, allocations: 363.5 kB / 1.307 GB, free: 30.25 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/1.12, allocations: 8.406 kB / 1.307 GB, free: 30.25 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.281e-05/1.12, allocations: 34.75 kB / 1.307 GB, free: 30.2 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/1.12, allocations: 3.531 kB / 1.307 GB, free: 30.2 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001659/1.12, allocations: 171 kB / 1.307 GB, free: 30 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.685e-05/1.12, allocations: 7.797 kB / 1.307 GB, free: 30 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.083e-05/1.12, allocations: 7.188 kB / 1.307 GB, free: 29.99 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002044/1.12, allocations: 47.56 kB / 1.307 GB, free: 29.96 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/1.12, allocations: 7.875 kB / 1.307 GB, free: 29.95 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/1.12, allocations: 0 / 1.307 GB, free: 29.95 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.373e-06/1.12, allocations: 2.906 kB / 1.307 GB, free: 29.95 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001614/1.12, allocations: 34.8 kB / 1.307 GB, free: 29.94 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000313/1.121, allocations: 245.5 kB / 1.307 GB, free: 29.67 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001233/1.121, allocations: 42.22 kB / 1.307 GB, free: 29.64 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.69e-05/1.121, allocations: 20.73 kB / 1.307 GB, free: 29.63 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005906/1.122, allocations: 460.2 kB / 1.308 GB, free: 29.16 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.888e-05/1.122, allocations: 41 kB / 1.308 GB, free: 29.11 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/1.122, allocations: 4 kB / 1.308 GB, free: 29.11 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.0003707/1.122, allocations: 76.38 kB / 1.308 GB, free: 29.07 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.874e-05/1.122, allocations: 54.64 kB / 1.308 GB, free: 29.01 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.079e-05/1.122, allocations: 102.2 kB / 1.308 GB, free: 28.91 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.149e-05/1.122, allocations: 33.08 kB / 1.308 GB, free: 28.87 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.139e-05/1.122, allocations: 84.09 kB / 1.308 GB, free: 28.79 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/1.122, allocations: 10.86 kB / 1.308 GB, free: 28.78 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.975e-05/1.122, allocations: 13.72 kB / 1.308 GB, free: 28.76 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 7.601e-05/1.122, allocations: 317.1 kB / 1.308 GB, free: 28.45 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.282e-05/1.122, allocations: 15.98 kB / 1.308 GB, free: 28.44 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.301e-05/1.122, allocations: 22.78 kB / 1.308 GB, free: 28.43 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001303/1.122, allocations: 44.23 kB / 1.308 GB, free: 28.41 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/1.122, allocations: 3.938 kB / 1.308 GB, free: 28.41 MB / 1.061 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001697/1.123, allocations: 65.78 kB / 1.309 GB, free: 28.38 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/1.123, allocations: 9.078 kB / 1.309 GB, free: 28.38 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/1.123, allocations: 0 / 1.309 GB, free: 28.38 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/1.123, allocations: 0 / 1.309 GB, free: 28.38 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.819e-05/1.123, allocations: 8.969 kB / 1.309 GB, free: 28.38 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/1.123, allocations: 0 / 1.309 GB, free: 28.38 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.905e-05/1.123, allocations: 7.094 kB / 1.309 GB, free: 28.37 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/1.123, allocations: 2.969 kB / 1.309 GB, free: 28.37 MB / 1.061 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 5.307e-05/1.123, allocations: 117.2 kB / 1.309 GB, free: 28.25 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.532e-05/1.123, allocations: 14.81 kB / 1.309 GB, free: 28.24 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001902/1.123, allocations: 69.72 kB / 1.309 GB, free: 28.2 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/1.123, allocations: 0 / 1.309 GB, free: 28.2 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/1.123, allocations: 4.031 kB / 1.309 GB, free: 28.2 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/1.123, allocations: 0 / 1.309 GB, free: 28.2 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001166/1.123, allocations: 166.3 kB / 1.309 GB, free: 28 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/1.123, allocations: 0 / 1.309 GB, free: 28 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.908e-05/1.123, allocations: 8.953 kB / 1.309 GB, free: 28 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/1.123, allocations: 2.812 kB / 1.309 GB, free: 28 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.041e-06/1.123, allocations: 256 / 1.309 GB, free: 28 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/1.123, allocations: 0 / 1.309 GB, free: 28 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/1.123, allocations: 4 kB / 1.309 GB, free: 27.99 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001972/1.123, allocations: 171.3 kB / 1.309 GB, free: 27.84 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.427e-05/1.124, allocations: 88.47 kB / 1.309 GB, free: 27.74 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.253e-05/1.124, allocations: 2.75 kB / 1.309 GB, free: 27.74 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.68e-05/1.124, allocations: 2.969 kB / 1.309 GB, free: 27.74 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.04e-05/1.124, allocations: 3.281 kB / 1.309 GB, free: 27.74 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/1.124, allocations: 2.75 kB / 1.309 GB, free: 27.74 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.544e-05/1.124, allocations: 86.44 kB / 1.309 GB, free: 27.66 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/1.124, allocations: 0 / 1.309 GB, free: 27.66 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002253/1.124, allocations: 20.73 kB / 1.309 GB, free: 27.66 MB / 1.061 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.000422/1.124, allocations: 0.7234 MB / 1.31 GB, free: 26.97 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001919/1.124, allocations: 34.98 kB / 1.31 GB, free: 26.96 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.512e-06/1.125, allocations: 3.938 kB / 1.31 GB, free: 26.96 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 7.261e-05/1.125, allocations: 20.84 kB / 1.31 GB, free: 26.96 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003006/1.125, allocations: 7.203 kB / 1.31 GB, free: 26.96 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004217/1.125, allocations: 143.6 kB / 1.31 GB, free: 26.8 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001491/1.125, allocations: 0.6779 MB / 1.311 GB, free: 26.11 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.839e-05/1.125, allocations: 6.875 kB / 1.311 GB, free: 26.1 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.239e-05/1.126, allocations: 11.44 kB / 1.311 GB, free: 26.09 MB / 1.061 GB Notification: Performance of SimCode: time 3.01e-07/1.126, allocations: 0 / 1.311 GB, free: 26.09 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02739/1.153, allocations: 1.618 MB / 1.312 GB, free: 25.7 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.229/9.382, allocations: 8.703 kB / 1.312 GB, free: 25.7 MB / 1.061 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_RegNonZeroPower_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_RegNonZeroPower.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.68881004722789]