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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001544/0.001544, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001632/0.001632, allocations: 220.3 kB / 22.26 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.507/1.507, allocations: 230.6 MB / 256 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.392/3.392, allocations: 0.505 GB / 0.8101 GB, free: 22.03 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002266/0.002266, allocations: 69.97 kB / 1.177 GB, free: 17 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3928/0.395, allocations: 180.2 MB / 1.353 GB, free: 8.453 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.003044/0.3981, allocations: 1.471 MB / 1.354 GB, free: 6.973 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0008344/0.3989, allocations: 386.7 kB / 1.355 GB, free: 6.594 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.274e-05/0.3989, allocations: 4 kB / 1.355 GB, free: 6.59 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.791e-05/0.399, allocations: 0 / 1.355 GB, free: 6.59 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 5.508e-05/0.399, allocations: 7.922 kB / 1.355 GB, free: 6.582 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005266/0.3996, allocations: 119.9 kB / 1.355 GB, free: 6.465 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 7.705e-05/0.3996, allocations: 19.98 kB / 1.355 GB, free: 6.445 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 8.362e-05/0.3997, allocations: 7.938 kB / 1.355 GB, free: 6.438 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 4.934e-05/0.3998, allocations: 19.86 kB / 1.355 GB, free: 6.418 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 4.145e-05/0.3998, allocations: 11.94 kB / 1.355 GB, free: 6.406 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.191e-05/0.3998, allocations: 0 / 1.355 GB, free: 6.406 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004679/0.4003, allocations: 279.6 kB / 1.355 GB, free: 6.133 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.56e-05/0.4003, allocations: 4 kB / 1.355 GB, free: 6.129 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.03e-05/0.4003, allocations: 19.92 kB / 1.355 GB, free: 6.109 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002285/0.4006, allocations: 107.7 kB / 1.355 GB, free: 6.004 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.4006, allocations: 0 / 1.355 GB, free: 6.004 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.342e-06/0.4006, allocations: 0 / 1.355 GB, free: 6.004 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.4006, allocations: 0 / 1.355 GB, free: 6.004 MB / 1.045 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.0004923/0.4011, allocations: 286 kB / 1.356 GB, free: 5.691 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.4011, allocations: 12.02 kB / 1.356 GB, free: 5.68 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.449e-05/0.4012, allocations: 30.75 kB / 1.356 GB, free: 5.641 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.108e-05/0.4012, allocations: 8.891 kB / 1.356 GB, free: 5.633 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.4013, allocations: 106.5 kB / 1.356 GB, free: 5.504 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.4013, allocations: 4.375 kB / 1.356 GB, free: 5.5 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.929e-06/0.4013, allocations: 4.375 kB / 1.356 GB, free: 5.496 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001843/0.4015, allocations: 50.23 kB / 1.356 GB, free: 5.441 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.4015, allocations: 7.875 kB / 1.356 GB, free: 5.434 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.425e-06/0.4015, allocations: 3.938 kB / 1.356 GB, free: 5.43 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.4015, allocations: 3.938 kB / 1.356 GB, free: 5.426 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001661/0.4017, allocations: 35.95 kB / 1.356 GB, free: 5.391 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003475/0.4021, allocations: 224 kB / 1.356 GB, free: 5.129 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001375/0.4022, allocations: 42.48 kB / 1.356 GB, free: 5.078 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.447e-05/0.4023, allocations: 20.91 kB / 1.356 GB, free: 5.055 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005513/0.4028, allocations: 79.92 kB / 1.356 GB, free: 4.977 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.598e-05/0.4029, allocations: 34.5 kB / 1.356 GB, free: 4.934 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.4029, allocations: 0 / 1.356 GB, free: 4.934 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0003995/0.4033, allocations: 85.64 kB / 1.356 GB, free: 4.844 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/0.4033, allocations: 51.41 kB / 1.356 GB, free: 4.781 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.937e-05/0.4034, allocations: 105.8 kB / 1.356 GB, free: 4.668 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.4034, allocations: 25.7 kB / 1.356 GB, free: 4.637 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 4.839e-05/0.4035, allocations: 80.14 kB / 1.356 GB, free: 4.555 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.313e-05/0.4035, allocations: 19.88 kB / 1.357 GB, free: 4.535 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.399e-05/0.4035, allocations: 13.7 kB / 1.357 GB, free: 4.516 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.4037, allocations: 319 kB / 1.357 GB, free: 4.195 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.735e-05/0.4037, allocations: 15.98 kB / 1.357 GB, free: 4.18 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.069e-05/0.4038, allocations: 15.92 kB / 1.357 GB, free: 4.164 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001522/0.404, allocations: 44.81 kB / 1.357 GB, free: 4.117 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.404, allocations: 3.938 kB / 1.357 GB, free: 4.113 MB / 1.045 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002118/0.4042, allocations: 69.72 kB / 1.357 GB, free: 4.039 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.4042, allocations: 8 kB / 1.357 GB, free: 4.031 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.4042, allocations: 0 / 1.357 GB, free: 4.031 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.941e-05/0.4042, allocations: 4.234 kB / 1.357 GB, free: 4.027 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.414e-05/0.4043, allocations: 4 kB / 1.357 GB, free: 4.023 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.4043, allocations: 8 kB / 1.357 GB, free: 4.016 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.542e-05/0.4044, allocations: 3.984 kB / 1.357 GB, free: 4.012 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.869e-06/0.4044, allocations: 8.031 kB / 1.357 GB, free: 4.004 MB / 1.045 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 8.866e-05/0.4044, allocations: 121.7 kB / 1.357 GB, free: 3.875 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.112e-05/0.4045, allocations: 7.953 kB / 1.357 GB, free: 3.867 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002387/0.4047, allocations: 77.25 kB / 1.357 GB, free: 3.785 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.4047, allocations: 4 kB / 1.357 GB, free: 3.781 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.4047, allocations: 0 / 1.357 GB, free: 3.781 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.4047, allocations: 3.938 kB / 1.357 GB, free: 3.777 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001652/0.4049, allocations: 132.7 kB / 1.357 GB, free: 3.605 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.4049, allocations: 0 / 1.357 GB, free: 3.605 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.062e-05/0.405, allocations: 11.98 kB / 1.357 GB, free: 3.594 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.405, allocations: 0 / 1.357 GB, free: 3.594 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.405, allocations: 0 / 1.357 GB, free: 3.594 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.405, allocations: 0 / 1.357 GB, free: 3.594 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.405, allocations: 0 / 1.357 GB, free: 3.594 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002719/0.4052, allocations: 175.4 kB / 1.358 GB, free: 3.406 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 8.276e-06/0.4053, allocations: 7.891 kB / 1.358 GB, free: 3.398 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.187e-05/0.4053, allocations: 0 / 1.358 GB, free: 3.398 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.001e-05/0.4053, allocations: 7.984 kB / 1.358 GB, free: 3.391 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.209e-05/0.4054, allocations: 0 / 1.358 GB, free: 3.391 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.343e-06/0.4054, allocations: 7.984 kB / 1.358 GB, free: 3.383 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.181e-05/0.4054, allocations: 83.28 kB / 1.358 GB, free: 3.301 MB / 1.045 GB Notification: Performance of sort global known variables: time 7.1e-08/0.4054, allocations: 0 / 1.358 GB, free: 3.301 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002405/0.4057, allocations: 16.03 kB / 1.358 GB, free: 3.285 MB / 1.045 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.0006516/0.4063, allocations: 0.7084 MB / 1.358 GB, free: 2.551 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002126/0.4065, allocations: 36 kB / 1.358 GB, free: 2.516 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.4065, allocations: 0 / 1.358 GB, free: 2.516 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 8.803e-05/0.4066, allocations: 19.98 kB / 1.358 GB, free: 2.496 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.407, allocations: 11.92 kB / 1.358 GB, free: 2.484 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004461/0.4074, allocations: 143.1 kB / 1.359 GB, free: 2.305 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.4077, allocations: 0.6769 MB / 1.359 GB, free: 1.602 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 2.335e-05/0.4077, allocations: 11.94 kB / 1.359 GB, free: 1.59 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.996e-05/0.4078, allocations: 7.438 kB / 1.359 GB, free: 1.582 MB / 1.045 GB Notification: Performance of SimCode: time 3.2e-07/0.4078, allocations: 0 / 1.359 GB, free: 1.582 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0304/0.4382, allocations: 1.721 MB / 1.361 GB, free: 15.98 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.54, allocations: 4.719 kB / 1.361 GB, free: 15.98 MB / 1.061 GB " [Timeout remaining time 288] (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/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: 18.710028703091666]