Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.BooleanReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booRep.u|booRep.y.1.|booRep.y.2.|booRep.y.3.|booRep.y.4.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator") translateModel(Buildings.Utilities.Math.Examples.BooleanReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booRep.u|booRep.y.1.|booRep.y.2.|booRep.y.3.|booRep.y.4.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009768/0.0009768, allocations: 112.6 kB / 16.37 MB, free: 6 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.0009408/0.0009408, allocations: 196 kB / 17.31 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.187/1.187, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.2/2.2, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001216, allocations: 68.09 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2475/0.2487, allocations: 153 MB / 1.027 GB, free: 2.066 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.00297/0.2518, allocations: 1.805 MB / 1.028 GB, free: 260 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001408/0.2532, allocations: 1.014 MB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.682e-05/0.2533, allocations: 0 / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005317/0.2538, allocations: 167.5 kB / 1.03 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002455/0.2541, allocations: 111.5 kB / 1.03 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000375/0.2544, allocations: 171 kB / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002515/0.2547, allocations: 175.6 kB / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.313e-05/0.2548, allocations: 25.11 kB / 1.03 GB, free: 14.6 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001218/0.2549, allocations: 71.69 kB / 1.03 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.147e-05/0.255, allocations: 63.77 kB / 1.03 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.052e-05/0.2551, allocations: 8 kB / 1.03 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001231/0.2552, allocations: 71.88 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.3e-05/0.2553, allocations: 39.91 kB / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.417e-05/0.2554, allocations: 55.62 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002292/0.2556, allocations: 195.4 kB / 1.031 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2556, allocations: 8 kB / 1.031 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.192e-06/0.2556, allocations: 0 / 1.031 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.624e-06/0.2556, allocations: 0 / 1.031 GB, free: 14.09 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005855/0.2562, allocations: 0.4935 MB / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.894e-05/0.2562, allocations: 8.031 kB / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.571e-05/0.2563, allocations: 16.75 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002598/0.2566, allocations: 248.8 kB / 1.031 GB, free: 13.24 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.2566, allocations: 4.375 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.229e-05/0.2566, allocations: 8.125 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002079/0.2568, allocations: 95.31 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.2568, allocations: 0 / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.838e-06/0.2568, allocations: 0 / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/0.2569, allocations: 7.984 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.953e-05/0.257, allocations: 27.98 kB / 1.031 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004355/0.2574, allocations: 360.5 kB / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001734/0.2576, allocations: 74.67 kB / 1.032 GB, free: 12.6 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.246e-05/0.2577, allocations: 36.84 kB / 1.032 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.2577, allocations: 0 / 1.032 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001433/0.2578, allocations: 91.25 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.333e-06/0.2578, allocations: 4 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.000299/0.2581, allocations: 141.4 kB / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.385e-05/0.2582, allocations: 77.11 kB / 1.032 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002327/0.2584, allocations: 263 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.682e-05/0.2585, allocations: 29.7 kB / 1.032 GB, free: 11.91 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.65e-05/0.2585, allocations: 120 kB / 1.033 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.445e-05/0.2586, allocations: 23.73 kB / 1.033 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.642e-05/0.2586, allocations: 25.7 kB / 1.033 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.895e-05/0.2587, allocations: 334.8 kB / 1.033 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.027e-05/0.2588, allocations: 27.98 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.499e-05/0.2589, allocations: 55.42 kB / 1.033 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001262/0.259, allocations: 77.62 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.259, allocations: 0 / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001802/0.2592, allocations: 125.4 kB / 1.033 GB, free: 11.1 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.2592, allocations: 4.375 kB / 1.033 GB, free: 11.09 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.2592, allocations: 0 / 1.033 GB, free: 11.09 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.979e-06/0.2592, allocations: 0 / 1.033 GB, free: 11.09 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.525e-05/0.2593, allocations: 12 kB / 1.033 GB, free: 11.08 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.2593, allocations: 3.938 kB / 1.033 GB, free: 11.08 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.473e-05/0.2594, allocations: 11.92 kB / 1.033 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.2594, allocations: 0 / 1.033 GB, free: 11.07 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.booTab.combiTimeTable.nextTimeEvent,$whenCondition1,booRep.y[4],booRep.y[3],booRep.y[2],booRep.y[1],booTab.combiTimeTable.nextTimeEventScaled,$PRE.booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEvent,booTab.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.0001194/0.2595, allocations: 154.6 kB / 1.033 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3e-05/0.2596, allocations: 15.92 kB / 1.033 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.891e-05/0.2596, allocations: 21.33 kB / 1.033 GB, free: 10.87 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.2596, allocations: 4 kB / 1.033 GB, free: 10.87 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.2596, allocations: 0 / 1.033 GB, free: 10.87 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.2596, allocations: 3.938 kB / 1.033 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001914/0.2598, allocations: 225.5 kB / 1.034 GB, free: 10.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.2598, allocations: 0 / 1.034 GB, free: 10.59 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.011e-05/0.2599, allocations: 4 kB / 1.034 GB, free: 10.59 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2599, allocations: 0 / 1.034 GB, free: 10.59 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.957e-06/0.2599, allocations: 7.984 kB / 1.034 GB, free: 10.58 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.2599, allocations: 0 / 1.034 GB, free: 10.58 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.2599, allocations: 3.984 kB / 1.034 GB, free: 10.58 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002102/0.2601, allocations: 152.7 kB / 1.034 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.595e-05/0.2602, allocations: 89.02 kB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.456e-05/0.2602, allocations: 3.984 kB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.54e-05/0.2603, allocations: 4 kB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.263e-05/0.2603, allocations: 8 kB / 1.034 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.282e-05/0.2603, allocations: 11.92 kB / 1.034 GB, free: 10.28 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001576/0.2605, allocations: 187.2 kB / 1.034 GB, free: 10.09 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2605, allocations: 4 kB / 1.034 GB, free: 10.09 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002187/0.2607, allocations: 31.91 kB / 1.034 GB, free: 10.06 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,booTab.y,booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * Number of discrete states: 2 (booTab.combiTimeTable.nextTimeEventScaled,booTab.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.0008647/0.2616, allocations: 422.9 kB / 1.035 GB, free: 9.793 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001842/0.2618, allocations: 79.91 kB / 1.035 GB, free: 9.715 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2618, allocations: 0 / 1.035 GB, free: 9.715 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 7.546e-05/0.2619, allocations: 35.98 kB / 1.035 GB, free: 9.68 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002562/0.2621, allocations: 39.84 kB / 1.035 GB, free: 9.641 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004364/0.2626, allocations: 291.1 kB / 1.035 GB, free: 9.332 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002464/0.2628, allocations: 0.7241 MB / 1.036 GB, free: 8.582 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.728e-05/0.2629, allocations: 25.72 kB / 1.036 GB, free: 8.559 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.409e-05/0.2629, allocations: 15.44 kB / 1.036 GB, free: 8.543 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.2629, allocations: 0 / 1.036 GB, free: 8.543 MB / 0.8106 GB Notification: Performance of Templates: time 0.004772/0.2677, allocations: 2.294 MB / 1.038 GB, free: 6.281 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_BooleanReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches