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.001875/0.001875, allocations: 118.2 kB / 17.17 MB, free: 6 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.002108/0.002108, allocations: 211.3 kB / 20.13 MB, free: 3.055 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.552/1.552, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.15/3.15, allocations: 0.5003 GB / 0.8026 GB, free: 6.77 MB / 0.6387 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="cs",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.002384/0.002384, allocations: 59.91 kB / 1.165 GB, free: 488 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.095/1.097, allocations: 179 MB / 1.34 GB, free: 16.27 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002878/1.1, allocations: 1.463 MB / 1.342 GB, free: 15.25 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0007824/1.101, allocations: 391 kB / 1.342 GB, free: 14.99 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.105e-05/1.101, allocations: 0 / 1.342 GB, free: 14.99 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.791e-05/1.101, allocations: 2 kB / 1.342 GB, free: 14.99 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 5.072e-05/1.101, allocations: 4.734 kB / 1.342 GB, free: 14.99 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004892/1.102, allocations: 112.2 kB / 1.342 GB, free: 14.95 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 8.264e-05/1.102, allocations: 25.92 kB / 1.342 GB, free: 14.94 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/1.102, allocations: 12.81 kB / 1.342 GB, free: 14.93 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 5.497e-05/1.102, allocations: 9.953 kB / 1.342 GB, free: 14.93 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 4.273e-05/1.102, allocations: 10.28 kB / 1.342 GB, free: 14.92 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.672e-05/1.102, allocations: 6.203 kB / 1.342 GB, free: 14.92 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004922/1.102, allocations: 275.5 kB / 1.342 GB, free: 14.85 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.638e-05/1.102, allocations: 9.703 kB / 1.342 GB, free: 14.84 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.803e-05/1.102, allocations: 12.53 kB / 1.342 GB, free: 14.84 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002408/1.103, allocations: 107 kB / 1.343 GB, free: 14.8 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/1.103, allocations: 0 / 1.343 GB, free: 14.8 MB / 1.061 GB Notification: Performance of FrontEnd: time 3.156e-06/1.103, allocations: 0 / 1.343 GB, free: 14.8 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.425e-05/1.103, allocations: 3.938 kB / 1.343 GB, free: 14.8 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.0004831/1.103, allocations: 365 kB / 1.343 GB, free: 14.42 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/1.103, allocations: 9.906 kB / 1.343 GB, free: 14.42 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.428e-05/1.103, allocations: 1.281 kB / 1.343 GB, free: 14.42 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.527e-05/1.103, allocations: 35.31 kB / 1.343 GB, free: 14.38 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.901e-05/1.103, allocations: 11.8 kB / 1.343 GB, free: 14.37 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/1.103, allocations: 171.3 kB / 1.343 GB, free: 14.16 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/1.103, allocations: 6.203 kB / 1.343 GB, free: 14.16 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.339e-05/1.103, allocations: 1.594 kB / 1.343 GB, free: 14.16 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001913/1.104, allocations: 56.62 kB / 1.343 GB, free: 14.12 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/1.104, allocations: 0 / 1.343 GB, free: 14.12 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/1.104, allocations: 5.188 kB / 1.343 GB, free: 14.11 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/1.104, allocations: 0 / 1.343 GB, free: 14.11 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001803/1.104, allocations: 33.5 kB / 1.343 GB, free: 14.11 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003069/1.104, allocations: 252.8 kB / 1.343 GB, free: 13.83 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001402/1.104, allocations: 42.47 kB / 1.343 GB, free: 13.8 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.511e-05/1.104, allocations: 23.55 kB / 1.343 GB, free: 13.79 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006749/1.105, allocations: 459.1 kB / 1.344 GB, free: 13.32 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/1.105, allocations: 40.75 kB / 1.344 GB, free: 13.27 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 1.543e-06/1.105, allocations: 0 / 1.344 GB, free: 13.27 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.000423/1.105, allocations: 78.52 kB / 1.344 GB, free: 13.23 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.391e-05/1.105, allocations: 56.06 kB / 1.344 GB, free: 13.17 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.043e-05/1.106, allocations: 104 kB / 1.344 GB, free: 13.07 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 9.378e-06/1.106, allocations: 29.7 kB / 1.344 GB, free: 13.03 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.26e-05/1.106, allocations: 82.92 kB / 1.344 GB, free: 12.95 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.738e-05/1.106, allocations: 4.609 kB / 1.344 GB, free: 12.95 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.007e-05/1.106, allocations: 17.52 kB / 1.344 GB, free: 12.93 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.974e-05/1.106, allocations: 314 kB / 1.345 GB, free: 12.61 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.889e-05/1.106, allocations: 21.67 kB / 1.345 GB, free: 12.61 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.462e-05/1.106, allocations: 14.83 kB / 1.345 GB, free: 12.61 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001577/1.106, allocations: 45.33 kB / 1.345 GB, free: 12.59 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/1.106, allocations: 0 / 1.345 GB, free: 12.59 MB / 1.061 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002111/1.106, allocations: 71.86 kB / 1.345 GB, free: 12.54 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/1.106, allocations: 6.75 kB / 1.345 GB, free: 12.54 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/1.106, allocations: 0 / 1.345 GB, free: 12.54 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/1.106, allocations: 0.8438 kB / 1.345 GB, free: 12.54 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.07e-05/1.106, allocations: 8.281 kB / 1.345 GB, free: 12.54 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/1.106, allocations: 1.812 kB / 1.345 GB, free: 12.54 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.964e-05/1.106, allocations: 5.969 kB / 1.345 GB, free: 12.54 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/1.106, allocations: 4.641 kB / 1.345 GB, free: 12.54 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 4.937e-05/1.106, allocations: 117.5 kB / 1.345 GB, free: 12.42 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.66e-05/1.107, allocations: 5.422 kB / 1.345 GB, free: 12.41 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002398/1.107, allocations: 85.17 kB / 1.345 GB, free: 12.36 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/1.107, allocations: 0.75 kB / 1.345 GB, free: 12.36 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/1.107, allocations: 0 / 1.345 GB, free: 12.36 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/1.107, allocations: 1.406 kB / 1.345 GB, free: 12.36 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001367/1.107, allocations: 165.7 kB / 1.345 GB, free: 12.16 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/1.107, allocations: 4.609 kB / 1.345 GB, free: 12.15 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.841e-05/1.107, allocations: 12.7 kB / 1.345 GB, free: 12.15 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/1.107, allocations: 0 / 1.345 GB, free: 12.15 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.775e-06/1.107, allocations: 2.578 kB / 1.345 GB, free: 12.15 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/1.107, allocations: 0 / 1.345 GB, free: 12.15 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/1.107, allocations: 0 / 1.345 GB, free: 12.15 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002358/1.107, allocations: 164.8 kB / 1.345 GB, free: 12.01 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.44e-05/1.107, allocations: 90.94 kB / 1.345 GB, free: 11.9 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.368e-05/1.107, allocations: 0.5625 kB / 1.345 GB, free: 11.9 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.441e-05/1.107, allocations: 6.297 kB / 1.345 GB, free: 11.9 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.11e-05/1.107, allocations: 2.516 kB / 1.345 GB, free: 11.9 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/1.107, allocations: 0.75 kB / 1.345 GB, free: 11.9 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.823e-05/1.107, allocations: 86.25 kB / 1.345 GB, free: 11.82 MB / 1.061 GB Notification: Performance of sort global known variables: time 8.1e-08/1.107, allocations: 0 / 1.345 GB, free: 11.82 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002294/1.108, allocations: 17.08 kB / 1.346 GB, free: 11.82 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.0004876/1.108, allocations: 0.7156 MB / 1.346 GB, free: 11.14 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002293/1.108, allocations: 36.22 kB / 1.346 GB, free: 11.14 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/1.108, allocations: 4.094 kB / 1.346 GB, free: 11.13 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.701e-05/1.108, allocations: 19.92 kB / 1.346 GB, free: 11.13 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003044/1.109, allocations: 7.391 kB / 1.346 GB, free: 11.12 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004241/1.109, allocations: 145.3 kB / 1.346 GB, free: 10.97 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001348/1.109, allocations: 0.678 MB / 1.347 GB, free: 10.28 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.381e-05/1.109, allocations: 1.375 kB / 1.347 GB, free: 10.28 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.401e-05/1.109, allocations: 21.94 kB / 1.347 GB, free: 10.26 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/1.109, allocations: 0 / 1.347 GB, free: 10.26 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01931/1.129, allocations: 1.659 MB / 1.349 GB, free: 9.848 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.456/9.584, allocations: 10.66 kB / 1.349 GB, free: 9.844 MB / 1.061 GB " [Timeout remaining time 290] (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: 16.44538748404011]