Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001877/0.001877, allocations: 77.33 kB / 19.76 MB, free: 2.031 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.002289/0.002289, allocations: 155.9 kB / 23.01 MB, free: 4.961 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.511/1.511, allocations: 177.2 MB / 203.4 MB, free: 8.957 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.78/2.78, allocations: 377.9 MB / 0.6228 GB, free: 12.61 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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: translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower") [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.002131/0.002131, allocations: 63.89 kB / 0.982 GB, free: 12.23 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8903/0.8924, allocations: 176.1 MB / 1.154 GB, free: 33.35 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002042/0.8945, allocations: 1.468 MB / 1.155 GB, free: 32.34 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0005594/0.895, allocations: 357.2 kB / 1.156 GB, free: 32.12 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.962e-05/0.8951, allocations: 2.938 kB / 1.156 GB, free: 32.12 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 2.082e-05/0.8951, allocations: 7.875 kB / 1.156 GB, free: 32.11 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 4.053e-05/0.8951, allocations: 3.938 kB / 1.156 GB, free: 32.11 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003571/0.8955, allocations: 106.3 kB / 1.156 GB, free: 32.07 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 5.156e-05/0.8955, allocations: 27.34 kB / 1.156 GB, free: 32.06 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 6.716e-05/0.8956, allocations: 7.188 kB / 1.156 GB, free: 32.06 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 2.988e-05/0.8956, allocations: 13.94 kB / 1.156 GB, free: 32.05 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 2.949e-05/0.8957, allocations: 14.11 kB / 1.156 GB, free: 32.04 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.071e-05/0.8957, allocations: 2.719 kB / 1.156 GB, free: 32.04 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003032/0.896, allocations: 261.1 kB / 1.156 GB, free: 31.99 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 1.316e-05/0.896, allocations: 0 / 1.156 GB, free: 31.99 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 1.72e-05/0.896, allocations: 14.11 kB / 1.156 GB, free: 31.98 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001609/0.8962, allocations: 106.8 kB / 1.156 GB, free: 31.95 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.8962, allocations: 0 / 1.156 GB, free: 31.95 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.543e-06/0.8962, allocations: 0 / 1.156 GB, free: 31.95 MB / 1.076 GB Notification: Performance of Transformations before backend: time 4.118e-06/0.8962, allocations: 0 / 1.156 GB, free: 31.95 MB / 1.076 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.0003432/0.8965, allocations: 292.5 kB / 1.156 GB, free: 31.66 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 2.777e-05/0.8965, allocations: 11.31 kB / 1.157 GB, free: 31.66 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.899e-05/0.8966, allocations: 4.891 kB / 1.157 GB, free: 31.66 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.732e-05/0.8967, allocations: 116.6 kB / 1.157 GB, free: 31.52 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.8967, allocations: 7.219 kB / 1.157 GB, free: 31.52 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.773e-06/0.8967, allocations: 384 / 1.157 GB, free: 31.52 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001479/0.8968, allocations: 48.42 kB / 1.157 GB, free: 31.48 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.8968, allocations: 4.172 kB / 1.157 GB, free: 31.48 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.805e-06/0.8968, allocations: 3.938 kB / 1.157 GB, free: 31.48 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.8968, allocations: 2.875 kB / 1.157 GB, free: 31.48 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001566/0.897, allocations: 38.88 kB / 1.157 GB, free: 31.46 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000205/0.8972, allocations: 198.6 kB / 1.157 GB, free: 31.26 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001144/0.8973, allocations: 40.45 kB / 1.157 GB, free: 31.23 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.945e-05/0.8974, allocations: 21.39 kB / 1.157 GB, free: 31.21 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005003/0.8979, allocations: 82.14 kB / 1.157 GB, free: 31.21 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.54e-05/0.8979, allocations: 30.56 kB / 1.157 GB, free: 31.17 MB / 1.076 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.8979, allocations: 2.781 kB / 1.157 GB, free: 31.17 MB / 1.076 GB Notification: Performance of matching and sorting (n=2): time 0.0003409/0.8983, allocations: 91.48 kB / 1.157 GB, free: 31.12 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.979e-05/0.8983, allocations: 53.97 kB / 1.157 GB, free: 31.05 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.485e-05/0.8983, allocations: 105.1 kB / 1.157 GB, free: 30.95 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 5.35e-06/0.8983, allocations: 25.7 kB / 1.157 GB, free: 30.92 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 2.102e-05/0.8983, allocations: 87.42 kB / 1.157 GB, free: 30.84 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.323e-05/0.8984, allocations: 6.547 kB / 1.157 GB, free: 30.83 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.571e-05/0.8984, allocations: 16.59 kB / 1.157 GB, free: 30.81 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 3.644e-05/0.8984, allocations: 310.8 kB / 1.158 GB, free: 30.5 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.208e-05/0.8985, allocations: 22.05 kB / 1.158 GB, free: 30.5 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.012e-05/0.8986, allocations: 15.75 kB / 1.158 GB, free: 30.49 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001407/0.8987, allocations: 46.48 kB / 1.158 GB, free: 30.47 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.8987, allocations: 0 / 1.158 GB, free: 30.47 MB / 1.076 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001926/0.8989, allocations: 78.2 kB / 1.158 GB, free: 30.43 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/0.8989, allocations: 5.75 kB / 1.158 GB, free: 30.43 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.8989, allocations: 96 / 1.158 GB, free: 30.43 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.8989, allocations: 4 kB / 1.158 GB, free: 30.42 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.509e-05/0.899, allocations: 9.016 kB / 1.158 GB, free: 30.42 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.128e-06/0.899, allocations: 2.594 kB / 1.158 GB, free: 30.42 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.476e-05/0.8991, allocations: 2.719 kB / 1.158 GB, free: 30.42 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.588e-06/0.8991, allocations: 0 / 1.158 GB, free: 30.42 MB / 1.076 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 3.701e-05/0.8991, allocations: 112.3 kB / 1.158 GB, free: 30.31 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.696e-05/0.8991, allocations: 10.73 kB / 1.158 GB, free: 30.3 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002024/0.8993, allocations: 76.11 kB / 1.158 GB, free: 30.25 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.8993, allocations: 2.5 kB / 1.158 GB, free: 30.25 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.8993, allocations: 0 / 1.158 GB, free: 30.25 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-06/0.8993, allocations: 0 / 1.158 GB, free: 30.25 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.97e-05/0.8994, allocations: 109.7 kB / 1.158 GB, free: 30.12 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.8994, allocations: 0 / 1.158 GB, free: 30.12 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.428e-05/0.8995, allocations: 8.266 kB / 1.158 GB, free: 30.12 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.8995, allocations: 6.469 kB / 1.158 GB, free: 30.12 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.49e-06/0.8995, allocations: 0 / 1.158 GB, free: 30.12 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.8995, allocations: 0 / 1.158 GB, free: 30.12 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.8995, allocations: 4.281 kB / 1.158 GB, free: 30.11 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002017/0.8997, allocations: 164.3 kB / 1.158 GB, free: 29.98 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 7.033e-06/0.8997, allocations: 7.938 kB / 1.158 GB, free: 29.97 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.163e-05/0.8997, allocations: 6.844 kB / 1.158 GB, free: 29.96 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.511e-05/0.8998, allocations: 5.906 kB / 1.158 GB, free: 29.96 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.782e-05/0.8998, allocations: 0 / 1.158 GB, free: 29.96 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.8998, allocations: 6.594 kB / 1.158 GB, free: 29.96 MB / 1.076 GB Notification: Performance of sorting global known variables: time 2.135e-05/0.8999, allocations: 83.67 kB / 1.159 GB, free: 29.89 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/0.8999, allocations: 32 / 1.159 GB, free: 29.89 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002343/0.9001, allocations: 18.53 kB / 1.159 GB, free: 29.88 MB / 1.076 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.0001075/0.9002, allocations: 106 kB / 1.159 GB, free: 29.79 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0002058/0.9004, allocations: 42.72 kB / 1.159 GB, free: 29.78 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.512e-06/0.9004, allocations: 0 / 1.159 GB, free: 29.78 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 8e-05/0.9005, allocations: 18.09 kB / 1.159 GB, free: 29.78 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002541/0.9007, allocations: 20.03 kB / 1.159 GB, free: 29.77 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002023/0.9009, allocations: 113.1 kB / 1.159 GB, free: 29.65 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.224e-05/0.901, allocations: 64.3 kB / 1.159 GB, free: 29.58 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 2.007e-05/0.901, allocations: 2.781 kB / 1.159 GB, free: 29.58 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.628e-05/0.901, allocations: 12.44 kB / 1.159 GB, free: 29.57 MB / 1.076 GB Notification: Performance of SimCode: time 3.21e-07/0.901, allocations: 0 / 1.159 GB, free: 29.57 MB / 1.076 GB Notification: Performance of Templates: time 0.002803/0.9038, allocations: 0.7345 MB / 1.16 GB, free: 29.48 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 8.543778038932942]