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.006214/0.006214, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001445/0.001445, allocations: 195.8 kB / 16.79 MB, free: 5.809 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.358/1.358, allocations: 222.9 MB / 240.5 MB, free: 4.578 MB / 190.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.518/2.518, allocations: 390.2 MB / 0.6649 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 63.91 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7034/0.7049, allocations: 140.4 MB / 0.9496 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002816/0.7077, allocations: 1.813 MB / 0.9514 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001456/0.7092, allocations: 1.098 MB / 0.9524 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.608e-05/0.7093, allocations: 5.031 kB / 0.9524 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002991/0.7096, allocations: 53.36 kB / 0.9525 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001776/0.7098, allocations: 73.67 kB / 0.9526 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005072/0.7104, allocations: 199.7 kB / 0.9527 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001898/0.7105, allocations: 129.5 kB / 0.9529 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.7107, allocations: 27.58 kB / 0.9529 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.294e-05/0.7108, allocations: 51.19 kB / 0.9529 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.421e-05/0.7109, allocations: 62.94 kB / 0.953 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.21e-05/0.7109, allocations: 3.438 kB / 0.953 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001382/0.711, allocations: 65.17 kB / 0.9531 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.909e-05/0.7111, allocations: 38.88 kB / 0.9531 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.879e-05/0.7112, allocations: 52.67 kB / 0.9532 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001836/0.7114, allocations: 153.6 kB / 0.9533 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.7114, allocations: 5.453 kB / 0.9533 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.452e-06/0.7114, allocations: 0 / 0.9533 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.298e-06/0.7114, allocations: 3.938 kB / 0.9533 GB, free: 6.285 MB / 0.7169 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.0005658/0.712, allocations: 483.4 kB / 0.9538 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.712, allocations: 14.03 kB / 0.9538 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.613e-05/0.7121, allocations: 15.84 kB / 0.9538 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002447/0.7123, allocations: 255.7 kB / 0.954 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.7124, allocations: 2.469 kB / 0.954 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.874e-05/0.7124, allocations: 7.25 kB / 0.9541 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002018/0.7126, allocations: 104 kB / 0.9542 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-06/0.7126, allocations: 0 / 0.9542 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.7126, allocations: 4.891 kB / 0.9542 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.785e-05/0.7127, allocations: 2.312 kB / 0.9542 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001069/0.7128, allocations: 29.58 kB / 0.9542 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004416/0.7132, allocations: 360.7 kB / 0.9545 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002307/0.7135, allocations: 89.22 kB / 0.9546 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.039e-05/0.7135, allocations: 31.03 kB / 0.9546 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.7136, allocations: 5.281 kB / 0.9547 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000212/0.7138, allocations: 83.8 kB / 0.9547 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.533e-06/0.7138, allocations: 0 / 0.9547 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0003514/0.7142, allocations: 140.3 kB / 0.9549 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.987e-05/0.7142, allocations: 108.4 kB / 0.955 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002225/0.7144, allocations: 268.1 kB / 0.9552 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.341e-05/0.7144, allocations: 26.83 kB / 0.9552 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.704e-05/0.7145, allocations: 120.2 kB / 0.9554 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.307e-05/0.7145, allocations: 19.11 kB / 0.9554 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.413e-05/0.7146, allocations: 35.39 kB / 0.9554 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.584e-05/0.7147, allocations: 335.2 kB / 0.9557 GB, free: 4 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.115e-05/0.7147, allocations: 21.53 kB / 0.9558 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.888e-05/0.7148, allocations: 65.89 kB / 0.9558 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001417/0.715, allocations: 68.98 kB / 0.9559 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.715, allocations: 0 / 0.9559 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002079/0.7152, allocations: 117 kB / 0.956 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.7152, allocations: 8.531 kB / 0.956 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.7152, allocations: 1.344 kB / 0.956 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.7153, allocations: 1.344 kB / 0.956 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.698e-05/0.7154, allocations: 9.906 kB / 0.956 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.7154, allocations: 13.45 kB / 0.956 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.693e-05/0.7154, allocations: 14.53 kB / 0.956 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.698e-06/0.7155, allocations: 6.969 kB / 0.956 GB, free: 3.789 MB / 0.7169 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.0001014/0.7156, allocations: 146.9 kB / 0.9562 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.919e-05/0.7156, allocations: 19.12 kB / 0.9562 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.074e-05/0.7156, allocations: 19.27 kB / 0.9562 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.7157, allocations: 2.469 kB / 0.9562 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.7157, allocations: 0 / 0.9562 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.7157, allocations: 5.125 kB / 0.9562 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000148/0.7158, allocations: 229.6 kB / 0.9565 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.7158, allocations: 1.156 kB / 0.9565 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.146e-05/0.7159, allocations: 5.156 kB / 0.9565 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.7159, allocations: 3.984 kB / 0.9565 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.7159, allocations: 1.469 kB / 0.9565 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.7159, allocations: 0 / 0.9565 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.7159, allocations: 1 kB / 0.9565 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002505/0.7162, allocations: 143.4 kB / 0.9566 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.572e-05/0.7162, allocations: 94.67 kB / 0.9567 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.023e-05/0.7163, allocations: 5.25 kB / 0.9567 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.745e-05/0.7163, allocations: 2.094 kB / 0.9567 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.887e-05/0.7164, allocations: 11.97 kB / 0.9567 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.7164, allocations: 11.61 kB / 0.9567 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001568/0.7166, allocations: 195 kB / 0.9569 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7166, allocations: 1.469 kB / 0.9569 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000267/0.7168, allocations: 32.66 kB / 0.9569 GB, free: 3.012 MB / 0.7169 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.0009636/0.7178, allocations: 435.6 kB / 0.9574 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002163/0.718, allocations: 74.53 kB / 0.9574 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.718, allocations: 0 / 0.9574 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.814e-05/0.7181, allocations: 33.7 kB / 0.9575 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002883/0.7184, allocations: 29.14 kB / 0.9575 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004995/0.7189, allocations: 355.3 kB / 0.9578 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001411/0.7191, allocations: 0.7274 MB / 0.9585 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.698e-05/0.7191, allocations: 20.69 kB / 0.9586 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.7192, allocations: 1.375 kB / 0.9586 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of Templates: time 0.004153/0.7233, allocations: 2.587 MB / 0.9611 GB, free: 420 kB / 0.7169 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