Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001762/0.001762, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002269/0.002269, allocations: 218.6 kB / 23.05 MB, free: 5.074 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.58/1.58, allocations: 230.6 MB / 256.8 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.89/2.89, allocations: 476.8 MB / 0.7715 GB, free: 4.305 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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_11_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_11_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.002039/0.002039, allocations: 64.16 kB / 1.118 GB, free: 40.32 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.42/0.4221, allocations: 170 MB / 1.284 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.003374/0.4254, allocations: 1.467 MB / 1.286 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009194/0.4264, allocations: 398.6 kB / 1.286 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.07e-05/0.4264, allocations: 0 / 1.286 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.893e-05/0.4264, allocations: 4 kB / 1.286 GB, free: 9.887 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.701e-05/0.4265, allocations: 3.938 kB / 1.286 GB, free: 9.883 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004746/0.427, allocations: 111 kB / 1.286 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.5e-05/0.427, allocations: 31.86 kB / 1.286 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.4271, allocations: 15.5 kB / 1.286 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.432e-05/0.4272, allocations: 7.984 kB / 1.286 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.679e-05/0.4272, allocations: 11.94 kB / 1.286 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.811e-05/0.4273, allocations: 4 kB / 1.286 GB, free: 9.711 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004569/0.4277, allocations: 283.6 kB / 1.286 GB, free: 9.434 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.584e-05/0.4277, allocations: 4 kB / 1.286 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.869e-05/0.4278, allocations: 11.94 kB / 1.286 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002428/0.428, allocations: 111.6 kB / 1.287 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.401e-06/0.428, allocations: 0 / 1.287 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.332e-06/0.428, allocations: 0 / 1.287 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.722e-06/0.428, allocations: 0 / 1.287 GB, free: 9.309 MB / 0.9825 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.0005528/0.4286, allocations: 290 kB / 1.287 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/0.4286, allocations: 12.03 kB / 1.287 GB, free: 8.98 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.493e-05/0.4286, allocations: 8.172 kB / 1.287 GB, free: 8.973 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.624e-05/0.4287, allocations: 34.75 kB / 1.287 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.611e-05/0.4288, allocations: 8.891 kB / 1.287 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.4289, allocations: 102.5 kB / 1.287 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.4289, allocations: 384 / 1.287 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.027e-06/0.4289, allocations: 4.375 kB / 1.287 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002175/0.4291, allocations: 53.98 kB / 1.287 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.4291, allocations: 0 / 1.287 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.4292, allocations: 4 kB / 1.287 GB, free: 8.73 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.4292, allocations: 0 / 1.287 GB, free: 8.73 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00018/0.4293, allocations: 39.89 kB / 1.287 GB, free: 8.691 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004077/0.4297, allocations: 220 kB / 1.287 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/0.4299, allocations: 38.55 kB / 1.287 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.614e-05/0.43, allocations: 32.91 kB / 1.287 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000524/0.4305, allocations: 67.92 kB / 1.287 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/0.4305, allocations: 34.56 kB / 1.287 GB, free: 8.242 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.473e-06/0.4305, allocations: 3.938 kB / 1.287 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0003999/0.4309, allocations: 89.59 kB / 1.288 GB, free: 8.145 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/0.431, allocations: 51.41 kB / 1.288 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.893e-05/0.4311, allocations: 105.8 kB / 1.288 GB, free: 7.969 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.014e-05/0.4311, allocations: 29.83 kB / 1.288 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.051e-05/0.4312, allocations: 88.08 kB / 1.288 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.036e-05/0.4312, allocations: 7.891 kB / 1.288 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.079e-05/0.4312, allocations: 21.7 kB / 1.288 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.4314, allocations: 310.8 kB / 1.288 GB, free: 7.496 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.654e-05/0.4315, allocations: 19.98 kB / 1.288 GB, free: 7.477 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.435e-05/0.4315, allocations: 13.77 kB / 1.288 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001604/0.4317, allocations: 52.75 kB / 1.288 GB, free: 7.41 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.4317, allocations: 0 / 1.288 GB, free: 7.41 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002112/0.4319, allocations: 69.66 kB / 1.288 GB, free: 7.336 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.4319, allocations: 4 kB / 1.288 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.4319, allocations: 3.938 kB / 1.288 GB, free: 7.328 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.432, allocations: 0 / 1.288 GB, free: 7.328 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.459e-05/0.432, allocations: 12.03 kB / 1.288 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.432, allocations: 0 / 1.288 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.747e-05/0.4321, allocations: 7.984 kB / 1.288 GB, free: 7.309 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-06/0.4321, allocations: 0 / 1.288 GB, free: 7.309 MB / 0.9825 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.762e-05/0.4322, allocations: 113.8 kB / 1.288 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.67e-05/0.4322, allocations: 3.953 kB / 1.288 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002485/0.4325, allocations: 89.19 kB / 1.288 GB, free: 7.09 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.4325, allocations: 0 / 1.288 GB, free: 7.09 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.4325, allocations: 0 / 1.288 GB, free: 7.09 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.4325, allocations: 0 / 1.288 GB, free: 7.09 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001653/0.4326, allocations: 132.7 kB / 1.289 GB, free: 6.918 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.4326, allocations: 0 / 1.289 GB, free: 6.918 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.368e-05/0.4327, allocations: 7.984 kB / 1.289 GB, free: 6.91 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.4327, allocations: 4 kB / 1.289 GB, free: 6.906 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.4327, allocations: 4 kB / 1.289 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.4327, allocations: 0 / 1.289 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4327, allocations: 4.031 kB / 1.289 GB, free: 6.898 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002629/0.433, allocations: 163.4 kB / 1.289 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.953e-06/0.433, allocations: 0 / 1.289 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.51e-05/0.433, allocations: 8.25 kB / 1.289 GB, free: 6.715 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.846e-05/0.4331, allocations: 11.98 kB / 1.289 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.426e-05/0.4331, allocations: 4.031 kB / 1.289 GB, free: 6.699 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.4331, allocations: 3.984 kB / 1.289 GB, free: 6.695 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.586e-05/0.4332, allocations: 79.28 kB / 1.289 GB, free: 6.617 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.4332, allocations: 0 / 1.289 GB, free: 6.617 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002388/0.4334, allocations: 19.94 kB / 1.289 GB, free: 6.598 MB / 0.9825 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.0006578/0.4341, allocations: 0.7124 MB / 1.29 GB, free: 5.859 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002158/0.4343, allocations: 39.91 kB / 1.29 GB, free: 5.82 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.4343, allocations: 3.938 kB / 1.29 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.975e-05/0.4344, allocations: 19.98 kB / 1.29 GB, free: 5.797 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003444/0.4347, allocations: 6.484 kB / 1.29 GB, free: 5.793 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005015/0.4352, allocations: 155 kB / 1.29 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003792/0.4356, allocations: 0.6806 MB / 1.29 GB, free: 4.895 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.938e-05/0.4356, allocations: 4 kB / 1.29 GB, free: 4.891 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.521e-05/0.4357, allocations: 11.44 kB / 1.29 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of SimCode: time 3e-07/0.4357, allocations: 0 / 1.29 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02285/0.4585, allocations: 1.74 MB / 1.292 GB, free: 3.281 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.75, allocations: 12.31 kB / 1.292 GB, free: 3.273 MB / 0.9825 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_RegNonZeroPower_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_RegNonZeroPower.fmu > Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.93656933802413]