Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001174/0.001174, allocations: 103.9 kB / 16.35 MB, free: 5.824 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.001168/0.001168, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.184/1.184, 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 10.1.0-maint.10.0.x/package.mo): time 2.188/2.188, allocations: 437.1 MB / 0.7112 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 60.66 kB / 0.8707 GB, free: 1.457 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2463, allocations: 151.6 MB / 1.019 GB, free: 9.859 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002566/0.2489, allocations: 1.775 MB / 1.021 GB, free: 8.066 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001416/0.2503, allocations: 1.107 MB / 1.022 GB, free: 6.949 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.602e-05/0.2504, allocations: 0 / 1.022 GB, free: 6.949 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0002388/0.2507, allocations: 59.67 kB / 1.022 GB, free: 6.891 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001937/0.2509, allocations: 79.67 kB / 1.022 GB, free: 6.812 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004863/0.2514, allocations: 227.7 kB / 1.022 GB, free: 6.594 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001703/0.2516, allocations: 151.6 kB / 1.022 GB, free: 6.445 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 8.58e-05/0.2517, allocations: 25.09 kB / 1.022 GB, free: 6.422 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 7.872e-05/0.2517, allocations: 63.77 kB / 1.022 GB, free: 6.359 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.537e-05/0.2518, allocations: 63.75 kB / 1.022 GB, free: 6.297 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.8e-05/0.2519, allocations: 8 kB / 1.022 GB, free: 6.289 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001357/0.252, allocations: 75.88 kB / 1.022 GB, free: 6.215 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 6.747e-05/0.2521, allocations: 43.84 kB / 1.022 GB, free: 6.172 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 6.019e-05/0.2521, allocations: 55.61 kB / 1.022 GB, free: 6.117 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002347/0.2524, allocations: 191.5 kB / 1.023 GB, free: 5.93 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.2524, allocations: 3.938 kB / 1.023 GB, free: 5.926 MB / 0.795 GB Notification: Performance of FrontEnd: time 9.72e-07/0.2524, allocations: 0 / 1.023 GB, free: 5.926 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.2524, allocations: 0 / 1.023 GB, free: 5.926 MB / 0.795 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.0005366/0.2529, allocations: 0.4885 MB / 1.023 GB, free: 5.383 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 2.794e-05/0.253, allocations: 8.922 kB / 1.023 GB, free: 5.375 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.339e-05/0.253, allocations: 20.73 kB / 1.023 GB, free: 5.355 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002655/0.2533, allocations: 245 kB / 1.023 GB, free: 5.074 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.2533, allocations: 4.375 kB / 1.023 GB, free: 5.07 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.369e-05/0.2533, allocations: 4.125 kB / 1.023 GB, free: 5.066 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001772/0.2535, allocations: 100.2 kB / 1.023 GB, free: 4.953 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.2535, allocations: 3.938 kB / 1.023 GB, free: 4.949 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.2536, allocations: 7.984 kB / 1.023 GB, free: 4.941 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.2536, allocations: 0 / 1.023 GB, free: 4.941 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.545e-05/0.2537, allocations: 31.98 kB / 1.023 GB, free: 4.91 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000436/0.2541, allocations: 356.6 kB / 1.024 GB, free: 4.512 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001987/0.2543, allocations: 94.66 kB / 1.024 GB, free: 4.41 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.666e-05/0.2544, allocations: 32.84 kB / 1.024 GB, free: 4.375 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.553e-05/0.2544, allocations: 4.031 kB / 1.024 GB, free: 4.371 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00015/0.2546, allocations: 79.28 kB / 1.024 GB, free: 4.281 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.433e-06/0.2546, allocations: 0 / 1.024 GB, free: 4.281 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.0003107/0.2549, allocations: 141.5 kB / 1.024 GB, free: 4.137 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/0.255, allocations: 110.8 kB / 1.024 GB, free: 4.004 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002147/0.2552, allocations: 263 kB / 1.025 GB, free: 3.738 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/0.2552, allocations: 29.7 kB / 1.025 GB, free: 3.703 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.198e-05/0.2553, allocations: 120.1 kB / 1.025 GB, free: 3.582 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.899e-05/0.2553, allocations: 11.81 kB / 1.025 GB, free: 3.57 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.332e-05/0.2554, allocations: 29.7 kB / 1.025 GB, free: 3.535 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001009/0.2555, allocations: 330.8 kB / 1.025 GB, free: 3.203 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.558e-05/0.2555, allocations: 27.98 kB / 1.025 GB, free: 3.176 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.747e-05/0.2556, allocations: 68.27 kB / 1.025 GB, free: 3.094 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001277/0.2558, allocations: 65.7 kB / 1.025 GB, free: 3.023 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2558, allocations: 3.938 kB / 1.025 GB, free: 3.02 MB / 0.795 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001932/0.256, allocations: 117.4 kB / 1.025 GB, free: 2.898 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.256, allocations: 7.984 kB / 1.025 GB, free: 2.891 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.256, allocations: 4.031 kB / 1.025 GB, free: 2.887 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.001e-05/0.256, allocations: 0 / 1.025 GB, free: 2.887 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.257e-05/0.2561, allocations: 15.94 kB / 1.025 GB, free: 2.871 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.2561, allocations: 400 / 1.025 GB, free: 2.871 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.255e-05/0.2562, allocations: 19.86 kB / 1.025 GB, free: 2.852 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-06/0.2562, allocations: 4 kB / 1.025 GB, free: 2.848 MB / 0.795 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.0001065/0.2563, allocations: 143.4 kB / 1.025 GB, free: 2.699 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.376e-05/0.2563, allocations: 15.81 kB / 1.025 GB, free: 2.684 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.761e-05/0.2564, allocations: 21.41 kB / 1.025 GB, free: 2.668 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.2564, allocations: 12.02 kB / 1.026 GB, free: 2.656 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.2564, allocations: 0 / 1.026 GB, free: 2.656 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.2564, allocations: 4.125 kB / 1.026 GB, free: 2.652 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000157/0.2566, allocations: 213.6 kB / 1.026 GB, free: 2.395 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2566, allocations: 3.938 kB / 1.026 GB, free: 2.391 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.789e-05/0.2566, allocations: 8 kB / 1.026 GB, free: 2.383 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2566, allocations: 0 / 1.026 GB, free: 2.383 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.2566, allocations: 7.984 kB / 1.026 GB, free: 2.375 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.2566, allocations: 0 / 1.026 GB, free: 2.375 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.2567, allocations: 0 / 1.026 GB, free: 2.375 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000217/0.2569, allocations: 156.7 kB / 1.026 GB, free: 2.203 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.122e-05/0.2569, allocations: 92.91 kB / 1.026 GB, free: 2.094 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.097e-05/0.257, allocations: 8 kB / 1.026 GB, free: 2.086 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.88e-05/0.257, allocations: 0 / 1.026 GB, free: 2.086 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.918e-05/0.2571, allocations: 7.984 kB / 1.026 GB, free: 2.078 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/0.2571, allocations: 11.94 kB / 1.026 GB, free: 2.066 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001468/0.2572, allocations: 192.6 kB / 1.026 GB, free: 1.879 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2573, allocations: 4 kB / 1.026 GB, free: 1.875 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002272/0.2575, allocations: 32 kB / 1.026 GB, free: 1.844 MB / 0.795 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.0008747/0.2584, allocations: 432.2 kB / 1.027 GB, free: 1.574 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.000192/0.2586, allocations: 67.91 kB / 1.027 GB, free: 1.508 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2586, allocations: 0 / 1.027 GB, free: 1.508 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 7.929e-05/0.2587, allocations: 31.98 kB / 1.027 GB, free: 1.477 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.2589, allocations: 47.42 kB / 1.027 GB, free: 1.434 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004326/0.2594, allocations: 298.8 kB / 1.027 GB, free: 1.113 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002277/0.2596, allocations: 0.7278 MB / 1.028 GB, free: 368 kB / 0.795 GB Notification: Performance of simCode: alias equations: time 6.326e-05/0.2597, allocations: 25.38 kB / 1.028 GB, free: 344 kB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.22e-05/0.2597, allocations: 27.42 kB / 1.028 GB, free: 316 kB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/0.2597, allocations: 0 / 1.028 GB, free: 316 kB / 0.795 GB Notification: Performance of Templates: time 0.005005/0.2647, allocations: 2.523 MB / 1.03 GB, free: 13.81 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches