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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001716/0.001715, allocations: 103.3 kB / 16.35 MB, free: 5.875 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.001998/0.001998, allocations: 191 kB / 17.29 MB, free: 5.516 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.352/1.352, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.239/2.239, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 63.5 kB / 0.814 GB, free: 32.55 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2399, allocations: 140.4 MB / 0.9511 GB, free: 8.066 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003082/0.243, allocations: 1.767 MB / 0.9528 GB, free: 6.289 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001702/0.2447, allocations: 1.111 MB / 0.9539 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.757e-05/0.2448, allocations: 0 / 0.9539 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002819/0.2451, allocations: 59.73 kB / 0.954 GB, free: 5.109 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002442/0.2454, allocations: 79.66 kB / 0.9541 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006202/0.246, allocations: 234.7 kB / 0.9543 GB, free: 4.805 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002081/0.2463, allocations: 143.7 kB / 0.9544 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.2464, allocations: 21.11 kB / 0.9544 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.2465, allocations: 63.7 kB / 0.9545 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001079/0.2466, allocations: 63.75 kB / 0.9546 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.204e-05/0.2467, allocations: 8 kB / 0.9546 GB, free: 4.512 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001671/0.2468, allocations: 71.94 kB / 0.9546 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 7.837e-05/0.2469, allocations: 43.84 kB / 0.9547 GB, free: 4.398 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.585e-05/0.247, allocations: 55.61 kB / 0.9547 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002981/0.2473, allocations: 199.4 kB / 0.9549 GB, free: 4.148 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2473, allocations: 0 / 0.9549 GB, free: 4.148 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2473, allocations: 0 / 0.9549 GB, free: 4.148 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.252e-06/0.2473, allocations: 0 / 0.9549 GB, free: 4.148 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.0006481/0.248, allocations: 0.4885 MB / 0.9554 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.248, allocations: 8.031 kB / 0.9554 GB, free: 3.598 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.648e-05/0.2481, allocations: 20.75 kB / 0.9554 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003228/0.2484, allocations: 256.8 kB / 0.9557 GB, free: 3.285 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.2484, allocations: 8.359 kB / 0.9557 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.86e-05/0.2485, allocations: 4.125 kB / 0.9557 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002018/0.2487, allocations: 96.17 kB / 0.9558 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.2487, allocations: 0 / 0.9558 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.2487, allocations: 4 kB / 0.9558 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.819e-05/0.2487, allocations: 7.922 kB / 0.9558 GB, free: 3.152 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001082/0.2488, allocations: 35.97 kB / 0.9558 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005009/0.2494, allocations: 352.7 kB / 0.9561 GB, free: 2.723 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002224/0.2496, allocations: 90.7 kB / 0.9562 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.907e-05/0.2497, allocations: 32.84 kB / 0.9563 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.73e-05/0.2497, allocations: 4 kB / 0.9563 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001835/0.2499, allocations: 79.36 kB / 0.9563 GB, free: 2.496 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.854e-06/0.2499, allocations: 0 / 0.9563 GB, free: 2.496 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.0003687/0.2503, allocations: 145.4 kB / 0.9565 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.2504, allocations: 102.8 kB / 0.9566 GB, free: 2.223 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.2506, allocations: 262.9 kB / 0.9568 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.046e-05/0.2506, allocations: 33.69 kB / 0.9569 GB, free: 1.914 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.2508, allocations: 120.1 kB / 0.957 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.479e-05/0.2508, allocations: 11.81 kB / 0.957 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.055e-05/0.2509, allocations: 29.7 kB / 0.957 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.251, allocations: 330.8 kB / 0.9573 GB, free: 1.414 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.494e-05/0.2511, allocations: 27.98 kB / 0.9574 GB, free: 1.387 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.818e-05/0.2512, allocations: 76.12 kB / 0.9574 GB, free: 1.297 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001479/0.2513, allocations: 69.7 kB / 0.9575 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2513, allocations: 0 / 0.9575 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002191/0.2516, allocations: 113.4 kB / 0.9576 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.2516, allocations: 4 kB / 0.9576 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.2516, allocations: 0 / 0.9576 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.2516, allocations: 0 / 0.9576 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.686e-05/0.2517, allocations: 15.98 kB / 0.9576 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.2517, allocations: 0 / 0.9576 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.353e-05/0.2518, allocations: 23.81 kB / 0.9577 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.02e-05/0.2518, allocations: 4 kB / 0.9577 GB, free: 1.059 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.0001274/0.252, allocations: 147.7 kB / 0.9578 GB, free: 0.9062 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.966e-05/0.252, allocations: 19.75 kB / 0.9578 GB, free: 0.8867 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.374e-05/0.252, allocations: 17.41 kB / 0.9578 GB, free: 0.8711 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/0.2521, allocations: 4 kB / 0.9578 GB, free: 0.8672 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.2521, allocations: 0 / 0.9578 GB, free: 0.8672 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.2521, allocations: 7.922 kB / 0.9578 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001804/0.2523, allocations: 225.6 kB / 0.9581 GB, free: 0.5898 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.2523, allocations: 4.188 kB / 0.9581 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.198e-05/0.2523, allocations: 4 kB / 0.9581 GB, free: 0.582 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2523, allocations: 3.938 kB / 0.9581 GB, free: 0.5781 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.2523, allocations: 4 kB / 0.9581 GB, free: 0.5742 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.2524, allocations: 0 / 0.9581 GB, free: 0.5742 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.2524, allocations: 0 / 0.9581 GB, free: 0.5742 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002387/0.2526, allocations: 140.8 kB / 0.9582 GB, free: 428 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.228e-05/0.2527, allocations: 96.91 kB / 0.9583 GB, free: 312 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.076e-05/0.2527, allocations: 8 kB / 0.9583 GB, free: 304 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.555e-05/0.2528, allocations: 0 / 0.9583 GB, free: 304 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.868e-05/0.2528, allocations: 11.92 kB / 0.9583 GB, free: 292 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.2529, allocations: 11.94 kB / 0.9583 GB, free: 280 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001665/0.253, allocations: 195.2 kB / 0.9585 GB, free: 84 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.253, allocations: 0 / 0.9585 GB, free: 84 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000255/0.2533, allocations: 28 kB / 0.9585 GB, free: 56 kB / 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.0009915/0.2543, allocations: 437.5 kB / 0.959 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002321/0.2545, allocations: 71.94 kB / 0.959 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.2546, allocations: 0 / 0.959 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 9.387e-05/0.2547, allocations: 35.92 kB / 0.9591 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002951/0.255, allocations: 45.88 kB / 0.9591 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000559/0.2555, allocations: 286.8 kB / 0.9594 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002876/0.2558, allocations: 0.7241 MB / 0.9601 GB, free: 14.58 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 7.937e-05/0.2559, allocations: 21.39 kB / 0.9601 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.776e-05/0.256, allocations: 23.44 kB / 0.9601 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of SimCode: time 2.8e-07/0.256, allocations: 0 / 0.9601 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of Templates: time 0.005715/0.2617, allocations: 2.54 MB / 0.9626 GB, free: 12.02 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 -s gbode -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