Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intRep.u|intRep.y.2.|intRep.y.1.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator") translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intRep.u|intRep.y.2.|intRep.y.1.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 102.6 kB / 16.27 MB, free: 5.863 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 188.9 kB / 17.2 MB, free: 5.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.358/2.358, allocations: 390.3 MB / 0.6653 GB, free: 0.7031 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 72.48 kB / 0.8132 GB, free: 32.97 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.296, allocations: 140.4 MB / 0.9503 GB, free: 8.875 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003742/0.2998, allocations: 1.772 MB / 0.952 GB, free: 7.086 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001924/0.3017, allocations: 1.107 MB / 0.9531 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.3019, allocations: 3.938 kB / 0.9531 GB, free: 5.965 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0003651/0.3023, allocations: 59.67 kB / 0.9531 GB, free: 5.906 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003135/0.3026, allocations: 75.67 kB / 0.9532 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007529/0.3034, allocations: 219.2 kB / 0.9534 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000259/0.3037, allocations: 151.6 kB / 0.9536 GB, free: 5.473 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.3038, allocations: 29.08 kB / 0.9536 GB, free: 5.445 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002572/0.3041, allocations: 59.77 kB / 0.9536 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001351/0.3042, allocations: 71.69 kB / 0.9537 GB, free: 5.316 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.895e-05/0.3043, allocations: 8 kB / 0.9537 GB, free: 5.309 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001999/0.3045, allocations: 63.95 kB / 0.9538 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.00019/0.3047, allocations: 43.84 kB / 0.9538 GB, free: 5.203 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.3048, allocations: 51.67 kB / 0.9539 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004587/0.3052, allocations: 203.6 kB / 0.9541 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3053, allocations: 0 / 0.9541 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.334e-06/0.3053, allocations: 0 / 0.9541 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.236e-06/0.3053, allocations: 0 / 0.9541 GB, free: 4.953 MB / 0.7325 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.0007793/0.3061, allocations: 492.3 kB / 0.9545 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3061, allocations: 12.02 kB / 0.9545 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.94e-05/0.3062, allocations: 20.69 kB / 0.9546 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003682/0.3066, allocations: 248.9 kB / 0.9548 GB, free: 4.105 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.3066, allocations: 4.312 kB / 0.9548 GB, free: 4.102 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.951e-05/0.3066, allocations: 8.125 kB / 0.9548 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002306/0.3068, allocations: 92.23 kB / 0.9549 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.3069, allocations: 7.984 kB / 0.9549 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/0.3069, allocations: 0 / 0.9549 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.088e-05/0.3069, allocations: 4 kB / 0.9549 GB, free: 3.977 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001126/0.307, allocations: 31.92 kB / 0.9549 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005622/0.3076, allocations: 356.7 kB / 0.9553 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002377/0.3079, allocations: 98.69 kB / 0.9554 GB, free: 3.441 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.552e-05/0.3079, allocations: 32.84 kB / 0.9554 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.232e-05/0.308, allocations: 0 / 0.9554 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002268/0.3082, allocations: 79.31 kB / 0.9555 GB, free: 3.316 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.603e-06/0.3082, allocations: 0 / 0.9555 GB, free: 3.316 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.0003766/0.3086, allocations: 145.4 kB / 0.9556 GB, free: 3.168 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.395e-05/0.3087, allocations: 106.8 kB / 0.9557 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000264/0.309, allocations: 270.7 kB / 0.956 GB, free: 2.766 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.309, allocations: 29.7 kB / 0.956 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.111e-05/0.3091, allocations: 116.1 kB / 0.9561 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.637e-05/0.3091, allocations: 11.81 kB / 0.9561 GB, free: 2.602 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.917e-05/0.3092, allocations: 29.7 kB / 0.9562 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.3093, allocations: 330.8 kB / 0.9565 GB, free: 2.234 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.371e-05/0.3094, allocations: 27.98 kB / 0.9565 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.943e-05/0.3095, allocations: 68.27 kB / 0.9566 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000144/0.3096, allocations: 69.64 kB / 0.9566 GB, free: 2.051 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3096, allocations: 0 / 0.9566 GB, free: 2.051 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002303/0.3099, allocations: 113.8 kB / 0.9567 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.3099, allocations: 12.02 kB / 0.9568 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.3099, allocations: 7.938 kB / 0.9568 GB, free: 1.914 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.3099, allocations: 0 / 0.9568 GB, free: 1.914 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.832e-05/0.31, allocations: 15.94 kB / 0.9568 GB, free: 1.898 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.3101, allocations: 0 / 0.9568 GB, free: 1.898 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.748e-05/0.3101, allocations: 27.77 kB / 0.9568 GB, free: 1.871 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.3102, allocations: 4 kB / 0.9568 GB, free: 1.867 MB / 0.7325 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.0001298/0.3103, allocations: 139.8 kB / 0.9569 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.87e-05/0.3103, allocations: 15.81 kB / 0.957 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.896e-05/0.3104, allocations: 25.39 kB / 0.957 GB, free: 1.684 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.288e-06/0.3104, allocations: 0 / 0.957 GB, free: 1.684 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3104, allocations: 0 / 0.957 GB, free: 1.684 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.3104, allocations: 7.938 kB / 0.957 GB, free: 1.676 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002047/0.3106, allocations: 217.6 kB / 0.9572 GB, free: 1.414 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.3106, allocations: 0 / 0.9572 GB, free: 1.414 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.208e-05/0.3107, allocations: 4 kB / 0.9572 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3107, allocations: 0 / 0.9572 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.3107, allocations: 7.984 kB / 0.9572 GB, free: 1.402 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3107, allocations: 3.938 kB / 0.9572 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3107, allocations: 0 / 0.9572 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002666/0.311, allocations: 140.8 kB / 0.9573 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.332e-05/0.3111, allocations: 101.1 kB / 0.9574 GB, free: 1.125 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.241e-05/0.3111, allocations: 4 kB / 0.9574 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.549e-05/0.3112, allocations: 7.938 kB / 0.9575 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.771e-05/0.3112, allocations: 7.984 kB / 0.9575 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/0.3113, allocations: 11.94 kB / 0.9575 GB, free: 1.094 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001812/0.3115, allocations: 192.6 kB / 0.9577 GB, free: 0.9062 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3115, allocations: 4 kB / 0.9577 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002602/0.3117, allocations: 32 kB / 0.9577 GB, free: 0.8711 MB / 0.7325 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.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent) * 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.001039/0.3128, allocations: 435.5 kB / 0.9581 GB, free: 0.6016 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002515/0.313, allocations: 75.91 kB / 0.9582 GB, free: 0.5273 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3131, allocations: 0 / 0.9582 GB, free: 0.5273 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.377e-05/0.3131, allocations: 35.92 kB / 0.9582 GB, free: 0.4922 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000301/0.3135, allocations: 44.67 kB / 0.9583 GB, free: 464 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000595/0.3141, allocations: 328.5 kB / 0.9586 GB, free: 96 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004032/0.3145, allocations: 0.7201 MB / 0.9593 GB, free: 15.35 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.367e-05/0.3145, allocations: 19.42 kB / 0.9593 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of SimCode: time 3.1e-07/0.3146, allocations: 0 / 0.9593 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of Templates: time 0.005403/0.32, allocations: 2.603 MB / 0.9618 GB, free: 12.74 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches