Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001967/0.001967, allocations: 110.4 kB / 18.94 MB, free: 2.793 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.002273/0.002273, allocations: 221.7 kB / 22.25 MB, free: 5.215 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.563/1.563, allocations: 230.6 MB / 256 MB, free: 8.016 MB / 206.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 3.394/3.394, allocations: 0.49 GB / 0.7951 GB, free: 33.57 MB / 0.6231 GB " [Timeout remaining time 176] 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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_12_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.002062/0.002062, allocations: 68.69 kB / 1.154 GB, free: 25.69 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3994/0.4015, allocations: 176.1 MB / 1.326 GB, free: 1.918 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.00338/0.4048, allocations: 1.819 MB / 1.328 GB, free: 92 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00217/0.407, allocations: 1.282 MB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.272e-05/0.4071, allocations: 0 / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0003356/0.4074, allocations: 63.67 kB / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0003286/0.4078, allocations: 123.5 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005376/0.4083, allocations: 194.8 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002304/0.4085, allocations: 159.6 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.4086, allocations: 9.922 kB / 1.329 GB, free: 14.26 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.4088, allocations: 79.62 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001305/0.4089, allocations: 71.73 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.878e-05/0.4089, allocations: 7.938 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000191/0.4091, allocations: 91.86 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.322e-05/0.4092, allocations: 35.92 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.643e-05/0.4093, allocations: 59.61 kB / 1.33 GB, free: 13.92 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003349/0.4096, allocations: 211.1 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.4096, allocations: 0 / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.523e-06/0.4096, allocations: 0 / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.413e-06/0.4096, allocations: 0 / 1.33 GB, free: 13.71 MB / 1.029 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.0008572/0.4105, allocations: 438.8 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/0.4105, allocations: 8.031 kB / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.454e-05/0.4106, allocations: 38.75 kB / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.852e-05/0.4106, allocations: 20.84 kB / 1.33 GB, free: 13.17 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004585/0.4111, allocations: 194.9 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/0.4111, allocations: 384 / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.443e-05/0.4111, allocations: 11.94 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002645/0.4114, allocations: 92.17 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.4114, allocations: 0 / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.4114, allocations: 0 / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.667e-05/0.4114, allocations: 7.984 kB / 1.331 GB, free: 12.83 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001218/0.4116, allocations: 35.98 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000646/0.4122, allocations: 335.7 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002499/0.4125, allocations: 82.66 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.841e-05/0.4125, allocations: 28.84 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.119e-05/0.4126, allocations: 8.031 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002297/0.4128, allocations: 83.36 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.593e-06/0.4128, allocations: 0 / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0004161/0.4132, allocations: 137.5 kB / 1.331 GB, free: 12.06 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.693e-05/0.4133, allocations: 106.8 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003325/0.4136, allocations: 287 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.4137, allocations: 25.7 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/0.4138, allocations: 128.1 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.489e-05/0.4138, allocations: 19.84 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.568e-05/0.4139, allocations: 29.7 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001552/0.4141, allocations: 334.8 kB / 1.332 GB, free: 11.09 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.752e-05/0.4141, allocations: 27.98 kB / 1.332 GB, free: 11.06 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001148/0.4142, allocations: 68.22 kB / 1.332 GB, free: 10.98 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000145/0.4144, allocations: 69.69 kB / 1.332 GB, free: 10.91 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.4144, allocations: 3.938 kB / 1.332 GB, free: 10.9 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002292/0.4146, allocations: 109.6 kB / 1.333 GB, free: 10.79 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.4146, allocations: 8 kB / 1.333 GB, free: 10.78 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.4147, allocations: 0 / 1.333 GB, free: 10.78 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.4147, allocations: 0 / 1.333 GB, free: 10.78 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.4148, allocations: 15.94 kB / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.4148, allocations: 8.016 kB / 1.333 GB, free: 10.76 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.187e-05/0.4149, allocations: 15.88 kB / 1.333 GB, free: 10.74 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.146e-06/0.4149, allocations: 0 / 1.333 GB, free: 10.74 MB / 1.029 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.0001467/0.415, allocations: 143.1 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.201e-05/0.415, allocations: 19.86 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002685/0.4153, allocations: 123.4 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.968e-06/0.4153, allocations: 4 kB / 1.333 GB, free: 10.44 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.4153, allocations: 0 / 1.333 GB, free: 10.44 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.4153, allocations: 11.88 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001996/0.4155, allocations: 192.7 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.4155, allocations: 0 / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.109e-05/0.4156, allocations: 7.984 kB / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.4156, allocations: 0 / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.4156, allocations: 4 kB / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.4156, allocations: 80 / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.4156, allocations: 3.984 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000251/0.4158, allocations: 152.9 kB / 1.333 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.461e-05/0.4159, allocations: 15.91 kB / 1.333 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.012e-05/0.4159, allocations: 4 kB / 1.333 GB, free: 9.996 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.732e-05/0.416, allocations: 3.984 kB / 1.333 GB, free: 9.992 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.258e-05/0.416, allocations: 19.92 kB / 1.333 GB, free: 9.973 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.416, allocations: 4 kB / 1.333 GB, free: 9.969 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001982/0.4162, allocations: 200.6 kB / 1.334 GB, free: 9.773 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4162, allocations: 3.938 kB / 1.334 GB, free: 9.77 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002618/0.4165, allocations: 39.89 kB / 1.334 GB, free: 9.73 MB / 1.029 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 (7): * Single equations (assignments): 4 * 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.002189/0.4187, allocations: 0.9922 MB / 1.335 GB, free: 8.871 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002688/0.4189, allocations: 67.89 kB / 1.335 GB, free: 8.805 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4189, allocations: 0 / 1.335 GB, free: 8.805 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.315e-05/0.419, allocations: 32.05 kB / 1.335 GB, free: 8.773 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003215/0.4194, allocations: 44.52 kB / 1.335 GB, free: 8.73 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002447/0.4218, allocations: 1.992 MB / 1.337 GB, free: 6.648 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003469/0.4222, allocations: 0.7202 MB / 1.337 GB, free: 5.902 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.302e-05/0.4222, allocations: 29.36 kB / 1.337 GB, free: 5.875 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.346e-05/0.4223, allocations: 55.41 kB / 1.337 GB, free: 5.82 MB / 1.029 GB Notification: Performance of SimCode: time 3.11e-07/0.4223, allocations: 0 / 1.337 GB, free: 5.82 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03398/0.4563, allocations: 4.979 MB / 1.342 GB, free: 0.9219 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.88, allocations: 3.938 kB / 1.342 GB, free: 0.918 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 19.360470191808417]