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.001023/0.001023, allocations: 113.8 kB / 16.37 MB, free: 6.012 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.0009439/0.0009439, allocations: 188.9 kB / 17.3 MB, free: 5.613 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.193/1.193, allocations: 222.9 MB / 241 MB, free: 15.15 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 1.981/1.981, allocations: 390.3 MB / 0.6655 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 64.86 kB / 0.814 GB, free: 32.53 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2267/0.2279, allocations: 140.4 MB / 0.9511 GB, free: 8.055 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002678/0.2306, allocations: 1.779 MB / 0.9529 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001428/0.2321, allocations: 1.104 MB / 0.9539 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.945e-05/0.2321, allocations: 0 / 0.9539 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002484/0.2324, allocations: 59.73 kB / 0.954 GB, free: 5.094 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001978/0.2326, allocations: 75.67 kB / 0.9541 GB, free: 5.02 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004933/0.2331, allocations: 226.7 kB / 0.9543 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001697/0.2333, allocations: 151.6 kB / 0.9544 GB, free: 4.652 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.816e-05/0.2334, allocations: 21.11 kB / 0.9544 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.914e-05/0.2335, allocations: 67.75 kB / 0.9545 GB, free: 4.566 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.753e-05/0.2336, allocations: 59.75 kB / 0.9546 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.823e-05/0.2336, allocations: 12 kB / 0.9546 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001316/0.2337, allocations: 79.81 kB / 0.9547 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.731e-05/0.2338, allocations: 35.91 kB / 0.9547 GB, free: 4.383 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.914e-05/0.2339, allocations: 55.61 kB / 0.9547 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002282/0.2341, allocations: 195.5 kB / 0.9549 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2341, allocations: 0 / 0.9549 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.545e-06/0.2341, allocations: 0 / 0.9549 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.2341, allocations: 3.938 kB / 0.9549 GB, free: 4.133 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.0005459/0.2347, allocations: 496.2 kB / 0.9554 GB, free: 3.594 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 2.992e-05/0.2347, allocations: 12.03 kB / 0.9554 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.554e-05/0.2348, allocations: 16.75 kB / 0.9554 GB, free: 3.566 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002735/0.235, allocations: 252.8 kB / 0.9557 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.2351, allocations: 4.375 kB / 0.9557 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.478e-05/0.2351, allocations: 4.125 kB / 0.9557 GB, free: 3.27 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001796/0.2353, allocations: 96.17 kB / 0.9558 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.2353, allocations: 0 / 0.9558 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.2353, allocations: 15.97 kB / 0.9558 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.2353, allocations: 0 / 0.9558 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.541e-05/0.2354, allocations: 35.92 kB / 0.9558 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004262/0.2359, allocations: 356.6 kB / 0.9562 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000194/0.2361, allocations: 82.67 kB / 0.9562 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.709e-05/0.2361, allocations: 36.84 kB / 0.9563 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.847e-05/0.2362, allocations: 3.984 kB / 0.9563 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001473/0.2363, allocations: 87.34 kB / 0.9564 GB, free: 2.48 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.463e-06/0.2363, allocations: 0 / 0.9564 GB, free: 2.48 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.0003206/0.2367, allocations: 137.5 kB / 0.9565 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.778e-05/0.2367, allocations: 102.8 kB / 0.9566 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00022/0.2369, allocations: 270.9 kB / 0.9569 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.237, allocations: 29.7 kB / 0.9569 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.661e-05/0.237, allocations: 116.1 kB / 0.957 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.2371, allocations: 15.81 kB / 0.957 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.027e-05/0.2371, allocations: 25.7 kB / 0.957 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.45e-05/0.2372, allocations: 330.8 kB / 0.9573 GB, free: 1.406 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.758e-05/0.2373, allocations: 31.92 kB / 0.9574 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.064e-05/0.2374, allocations: 72.27 kB / 0.9574 GB, free: 1.289 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001249/0.2375, allocations: 65.7 kB / 0.9575 GB, free: 1.219 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2375, allocations: 0 / 0.9575 GB, free: 1.219 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001949/0.2377, allocations: 113.7 kB / 0.9576 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/0.2377, allocations: 4 kB / 0.9576 GB, free: 1.098 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.2377, allocations: 0 / 0.9576 GB, free: 1.098 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.2378, allocations: 11.98 kB / 0.9576 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.161e-05/0.2378, allocations: 16.03 kB / 0.9576 GB, free: 1.07 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.2379, allocations: 4.062 kB / 0.9576 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.101e-05/0.2379, allocations: 15.78 kB / 0.9577 GB, free: 1.051 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/0.2379, allocations: 7.984 kB / 0.9577 GB, free: 1.043 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.0001069/0.2381, allocations: 151.7 kB / 0.9578 GB, free: 0.8867 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.388e-05/0.2381, allocations: 11.81 kB / 0.9578 GB, free: 0.875 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.855e-05/0.2381, allocations: 21.44 kB / 0.9578 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.2381, allocations: 7.984 kB / 0.9579 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.207e-06/0.2381, allocations: 0 / 0.9579 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.2382, allocations: 7.938 kB / 0.9579 GB, free: 0.8398 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000157/0.2383, allocations: 221.6 kB / 0.9581 GB, free: 0.5742 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2383, allocations: 0 / 0.9581 GB, free: 0.5742 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.556e-05/0.2384, allocations: 4 kB / 0.9581 GB, free: 0.5703 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.2384, allocations: 4.188 kB / 0.9581 GB, free: 0.5664 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.066e-06/0.2384, allocations: 3.938 kB / 0.9581 GB, free: 0.5625 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.2384, allocations: 7.922 kB / 0.9581 GB, free: 0.5547 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.2384, allocations: 0 / 0.9581 GB, free: 0.5547 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000216/0.2386, allocations: 144.8 kB / 0.9582 GB, free: 404 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.133e-05/0.2387, allocations: 92.91 kB / 0.9583 GB, free: 292 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.598e-05/0.2387, allocations: 8 kB / 0.9583 GB, free: 284 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.812e-05/0.2388, allocations: 0 / 0.9583 GB, free: 284 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.245e-05/0.2388, allocations: 11.98 kB / 0.9583 GB, free: 272 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.2388, allocations: 7.938 kB / 0.9583 GB, free: 264 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001488/0.239, allocations: 195.2 kB / 0.9585 GB, free: 68 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.239, allocations: 0 / 0.9585 GB, free: 68 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002187/0.2392, allocations: 32 kB / 0.9586 GB, free: 36 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.0008575/0.2401, allocations: 428.7 kB / 0.959 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0001965/0.2403, allocations: 67.91 kB / 0.959 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2403, allocations: 0 / 0.959 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 8.595e-05/0.2404, allocations: 35.98 kB / 0.9591 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002531/0.2406, allocations: 45.66 kB / 0.9591 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004161/0.2411, allocations: 290.9 kB / 0.9594 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002254/0.2413, allocations: 0.724 MB / 0.9601 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.492e-05/0.2414, allocations: 21.38 kB / 0.9601 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.278e-05/0.2414, allocations: 31.36 kB / 0.9602 GB, free: 14.51 MB / 0.7481 GB Notification: Performance of SimCode: time 2.4e-07/0.2414, allocations: 0 / 0.9602 GB, free: 14.51 MB / 0.7481 GB Notification: Performance of Templates: time 0.004782/0.2462, allocations: 2.537 MB / 0.9626 GB, free: 12 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 cvode -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