Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.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.00135/0.00135, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001534/0.001534, allocations: 215.4 kB / 22.24 MB, free: 4.855 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.479/1.479, allocations: 230.6 MB / 256 MB, free: 8.008 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.855/2.855, allocations: 476 MB / 0.7699 GB, free: 4.73 MB / 0.6231 GB " [Timeout remaining time 177] 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.IntegerReplicator,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_IntegerReplicator",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.0021/0.0021, allocations: 67.73 kB / 1.117 GB, free: 41.28 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.2908, allocations: 169.9 MB / 1.283 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003711/0.2945, allocations: 1.773 MB / 1.284 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002184/0.2967, allocations: 1.198 MB / 1.285 GB, free: 9.449 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.336e-05/0.2968, allocations: 0 / 1.285 GB, free: 9.449 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0003116/0.2971, allocations: 63.67 kB / 1.286 GB, free: 9.387 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003588/0.2974, allocations: 115.5 kB / 1.286 GB, free: 9.273 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005501/0.298, allocations: 201.4 kB / 1.286 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002266/0.2982, allocations: 159.5 kB / 1.286 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.2983, allocations: 13.62 kB / 1.286 GB, free: 8.906 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001216/0.2984, allocations: 75.7 kB / 1.286 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001175/0.2985, allocations: 63.75 kB / 1.286 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.246e-05/0.2986, allocations: 8 kB / 1.286 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001749/0.2987, allocations: 83.86 kB / 1.286 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.835e-05/0.2988, allocations: 43.84 kB / 1.286 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.415e-05/0.2989, allocations: 43.72 kB / 1.286 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003041/0.2992, allocations: 206.8 kB / 1.286 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2992, allocations: 0 / 1.286 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.322e-06/0.2992, allocations: 3.938 kB / 1.286 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.2992, allocations: 0 / 1.286 GB, free: 8.391 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007034/0.2999, allocations: 430.9 kB / 1.287 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.2999, allocations: 8.031 kB / 1.287 GB, free: 7.926 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.703e-05/0.3, allocations: 42.73 kB / 1.287 GB, free: 7.875 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.443e-05/0.3, allocations: 16.84 kB / 1.287 GB, free: 7.859 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003869/0.3004, allocations: 198.1 kB / 1.287 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.3004, allocations: 8.312 kB / 1.287 GB, free: 7.633 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.067e-05/0.3005, allocations: 7.922 kB / 1.287 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002395/0.3007, allocations: 117 kB / 1.287 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.3007, allocations: 0 / 1.287 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.3007, allocations: 4 kB / 1.287 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.3007, allocations: 4 kB / 1.287 GB, free: 7.484 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001218/0.3009, allocations: 39.97 kB / 1.287 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005913/0.3015, allocations: 319.8 kB / 1.288 GB, free: 7.09 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002596/0.3017, allocations: 90.64 kB / 1.288 GB, free: 6.992 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.643e-05/0.3018, allocations: 32.78 kB / 1.288 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.3018, allocations: 4 kB / 1.288 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002095/0.302, allocations: 87.39 kB / 1.288 GB, free: 6.855 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.573e-06/0.302, allocations: 0 / 1.288 GB, free: 6.855 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.0004333/0.3025, allocations: 145.5 kB / 1.288 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.33e-05/0.3025, allocations: 85.09 kB / 1.288 GB, free: 6.605 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003213/0.3028, allocations: 275.1 kB / 1.288 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.695e-05/0.3029, allocations: 33.7 kB / 1.288 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.79e-05/0.303, allocations: 120.1 kB / 1.288 GB, free: 6.164 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.829e-05/0.303, allocations: 19.83 kB / 1.288 GB, free: 6.145 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.478e-05/0.3031, allocations: 29.66 kB / 1.289 GB, free: 6.109 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001534/0.3032, allocations: 330.8 kB / 1.289 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.365e-05/0.3033, allocations: 27.98 kB / 1.289 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001357/0.3034, allocations: 110.8 kB / 1.289 GB, free: 5.617 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000165/0.3036, allocations: 77.72 kB / 1.289 GB, free: 5.535 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3036, allocations: 0 / 1.289 GB, free: 5.535 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000245/0.3038, allocations: 121.5 kB / 1.289 GB, free: 5.41 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.3039, allocations: 7.984 kB / 1.289 GB, free: 5.402 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.3039, allocations: 0 / 1.289 GB, free: 5.402 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.3039, allocations: 4 kB / 1.289 GB, free: 5.398 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.304, allocations: 8.188 kB / 1.289 GB, free: 5.391 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.304, allocations: 3.938 kB / 1.289 GB, free: 5.387 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.418e-05/0.3041, allocations: 19.89 kB / 1.289 GB, free: 5.367 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.322e-05/0.3041, allocations: 8 kB / 1.289 GB, free: 5.359 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.intTab.combiTimeTable.nextTimeEvent,$whenCondition1,intRep.y[2],intRep.y[1],intTab.combiTimeTable.nextTimeEventScaled,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent,intTab.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 1 * 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 0.0001502/0.3042, allocations: 137.8 kB / 1.289 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.266e-05/0.3043, allocations: 11.91 kB / 1.289 GB, free: 5.203 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003256/0.3046, allocations: 138.9 kB / 1.289 GB, free: 5.059 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/0.3046, allocations: 0 / 1.289 GB, free: 5.059 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3046, allocations: 0 / 1.289 GB, free: 5.059 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.3046, allocations: 3.938 kB / 1.289 GB, free: 5.055 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002273/0.3048, allocations: 184.6 kB / 1.29 GB, free: 4.832 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3048, allocations: 4 kB / 1.29 GB, free: 4.828 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.778e-05/0.3049, allocations: 15.92 kB / 1.29 GB, free: 4.812 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.3049, allocations: 0 / 1.29 GB, free: 4.812 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.3049, allocations: 8 kB / 1.29 GB, free: 4.805 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3049, allocations: 0 / 1.29 GB, free: 4.805 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.3049, allocations: 0 / 1.29 GB, free: 4.805 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002797/0.3052, allocations: 156.9 kB / 1.29 GB, free: 4.633 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.174e-05/0.3052, allocations: 15.91 kB / 1.29 GB, free: 4.617 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.975e-05/0.3053, allocations: 7.984 kB / 1.29 GB, free: 4.609 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.826e-05/0.3053, allocations: 4 kB / 1.29 GB, free: 4.605 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.858e-05/0.3054, allocations: 11.92 kB / 1.29 GB, free: 4.594 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/0.3054, allocations: 8 kB / 1.29 GB, free: 4.586 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002138/0.3056, allocations: 204.6 kB / 1.29 GB, free: 4.387 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.3056, allocations: 0 / 1.29 GB, free: 4.387 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002813/0.3059, allocations: 35.89 kB / 1.29 GB, free: 4.352 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: 6 ($whenCondition1,intTab.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002185/0.3081, allocations: 1.028 MB / 1.291 GB, free: 3.484 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002383/0.3083, allocations: 71.89 kB / 1.291 GB, free: 3.414 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3083, allocations: 3.938 kB / 1.291 GB, free: 3.41 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.3084, allocations: 36.05 kB / 1.291 GB, free: 3.375 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003182/0.3087, allocations: 55 kB / 1.291 GB, free: 3.324 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002528/0.3112, allocations: 1.996 MB / 1.293 GB, free: 1.234 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001185/0.3114, allocations: 114.6 kB / 1.293 GB, free: 1.102 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.06e-05/0.3114, allocations: 25.42 kB / 1.293 GB, free: 1.078 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.3115, allocations: 47.42 kB / 1.293 GB, free: 1.031 MB / 0.9825 GB Notification: Performance of SimCode: time 4.41e-07/0.3115, allocations: 0 / 1.293 GB, free: 1.031 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03345/0.345, allocations: 5.489 MB / 1.299 GB, free: 11.62 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.13, allocations: 13.7 kB / 1.299 GB, free: 11.62 MB / 0.9981 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.IntegerReplicator.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.786263556219637]