Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.001022/0.001022, allocations: 107.2 kB / 16.36 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.001193/0.001193, allocations: 193.1 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.198/1.198, 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 2.009/2.009, allocations: 390.3 MB / 0.6655 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 65.12 kB / 0.814 GB, free: 32.69 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2338, allocations: 140.4 MB / 0.9511 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003446/0.2373, allocations: 1.783 MB / 0.9529 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001535/0.2389, allocations: 1.018 MB / 0.9538 GB, free: 5.223 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.235e-05/0.239, allocations: 7.938 kB / 0.9539 GB, free: 5.215 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0007046/0.2397, allocations: 171.4 kB / 0.954 GB, free: 5.051 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002946/0.24, allocations: 111.6 kB / 0.9541 GB, free: 4.941 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004481/0.2405, allocations: 163.5 kB / 0.9543 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002509/0.2408, allocations: 167.6 kB / 0.9544 GB, free: 4.617 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.2409, allocations: 21.12 kB / 0.9545 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001059/0.241, allocations: 71.69 kB / 0.9545 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001053/0.2411, allocations: 63.77 kB / 0.9546 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.799e-05/0.2411, allocations: 8 kB / 0.9546 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.2413, allocations: 75.88 kB / 0.9547 GB, free: 4.383 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.604e-05/0.2413, allocations: 43.84 kB / 0.9547 GB, free: 4.34 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.445e-05/0.2414, allocations: 71.59 kB / 0.9548 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002473/0.2417, allocations: 195.3 kB / 0.955 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2417, allocations: 0 / 0.955 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2417, allocations: 0 / 0.955 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.526e-06/0.2417, allocations: 0 / 0.955 GB, free: 4.078 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006943/0.2424, allocations: 496.3 kB / 0.9554 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.2425, allocations: 8.031 kB / 0.9554 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.872e-05/0.2425, allocations: 24.66 kB / 0.9555 GB, free: 3.508 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.2429, allocations: 244.9 kB / 0.9557 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.2429, allocations: 4.359 kB / 0.9557 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.741e-05/0.2429, allocations: 16 kB / 0.9557 GB, free: 3.207 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001831/0.2431, allocations: 87.38 kB / 0.9558 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.2431, allocations: 0 / 0.9558 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.2431, allocations: 3.984 kB / 0.9558 GB, free: 3.105 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.682e-05/0.2431, allocations: 8 kB / 0.9558 GB, free: 3.098 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.47e-05/0.2432, allocations: 35.98 kB / 0.9559 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005068/0.2438, allocations: 348.6 kB / 0.9562 GB, free: 2.672 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001769/0.244, allocations: 78.67 kB / 0.9563 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.331e-05/0.244, allocations: 32.84 kB / 0.9563 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/0.244, allocations: 4 kB / 0.9563 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001556/0.2442, allocations: 83.31 kB / 0.9564 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.2442, allocations: 0 / 0.9564 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0002992/0.2445, allocations: 145.3 kB / 0.9565 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.066e-05/0.2446, allocations: 81.11 kB / 0.9566 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.2448, allocations: 263 kB / 0.9568 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.2449, allocations: 29.7 kB / 0.9569 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.833e-05/0.2449, allocations: 116.1 kB / 0.957 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.71e-05/0.245, allocations: 27.64 kB / 0.957 GB, free: 1.758 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.223e-05/0.245, allocations: 29.7 kB / 0.957 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.283e-05/0.2451, allocations: 330.8 kB / 0.9574 GB, free: 1.391 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.351e-05/0.2452, allocations: 27.98 kB / 0.9574 GB, free: 1.363 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.659e-05/0.2453, allocations: 63.34 kB / 0.9574 GB, free: 1.289 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000119/0.2454, allocations: 77.67 kB / 0.9575 GB, free: 1.207 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2454, allocations: 0 / 0.9575 GB, free: 1.207 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002917/0.2457, allocations: 117.5 kB / 0.9576 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.2457, allocations: 4 kB / 0.9576 GB, free: 1.082 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.2457, allocations: 4 kB / 0.9576 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.2458, allocations: 0 / 0.9576 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.157e-05/0.2459, allocations: 8 kB / 0.9576 GB, free: 1.07 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.2459, allocations: 4.031 kB / 0.9576 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.856e-05/0.246, allocations: 16.2 kB / 0.9577 GB, free: 1.051 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.246, allocations: 4 kB / 0.9577 GB, free: 1.047 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: 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.0001577/0.2461, allocations: 146.2 kB / 0.9578 GB, free: 0.8945 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.776e-05/0.2462, allocations: 15.81 kB / 0.9578 GB, free: 0.8789 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.396e-05/0.2463, allocations: 25.33 kB / 0.9578 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.457e-05/0.2463, allocations: 8 kB / 0.9578 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.2463, allocations: 0 / 0.9578 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.2463, allocations: 7.938 kB / 0.9579 GB, free: 0.8398 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002236/0.2465, allocations: 225.5 kB / 0.9581 GB, free: 0.5703 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2465, allocations: 0 / 0.9581 GB, free: 0.5703 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.989e-05/0.2466, allocations: 4 kB / 0.9581 GB, free: 0.5664 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.2466, allocations: 0 / 0.9581 GB, free: 0.5664 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.2466, allocations: 4 kB / 0.9581 GB, free: 0.5625 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.2466, allocations: 3.984 kB / 0.9581 GB, free: 0.5586 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2466, allocations: 0 / 0.9581 GB, free: 0.5586 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002068/0.2468, allocations: 148.8 kB / 0.9582 GB, free: 404 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.377e-05/0.2469, allocations: 92.91 kB / 0.9583 GB, free: 292 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.536e-05/0.2469, allocations: 4 kB / 0.9583 GB, free: 288 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.618e-05/0.2469, allocations: 4 kB / 0.9583 GB, free: 284 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.315e-05/0.247, allocations: 7.984 kB / 0.9583 GB, free: 276 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.247, allocations: 7.938 kB / 0.9583 GB, free: 268 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001558/0.2472, allocations: 187.2 kB / 0.9585 GB, free: 80 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2472, allocations: 0 / 0.9585 GB, free: 80 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002238/0.2474, allocations: 28 kB / 0.9585 GB, free: 52 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: 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.0009118/0.2483, allocations: 432.8 kB / 0.959 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002051/0.2485, allocations: 79.89 kB / 0.959 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2485, allocations: 0 / 0.959 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 8.214e-05/0.2486, allocations: 39.92 kB / 0.9591 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002707/0.2489, allocations: 43.06 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.0005035/0.2494, allocations: 299.1 kB / 0.9594 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.2497, allocations: 0.7278 MB / 0.9601 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 5.849e-05/0.2498, allocations: 17.73 kB / 0.9601 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.753e-05/0.2498, allocations: 15.44 kB / 0.9601 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of SimCode: time 2.5e-07/0.2498, allocations: 0 / 0.9601 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of Templates: time 0.004926/0.2548, allocations: 2.282 MB / 0.9624 GB, free: 12.26 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_BooleanReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches