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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001565/0.001566, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001944/0.001944, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.547/1.547, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.838/2.838, allocations: 472.6 MB / 0.7451 GB, free: 4.551 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001249, allocations: 65.44 kB / 0.9121 GB, free: 33.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3417/0.343, allocations: 159.9 MB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003423/0.3464, allocations: 1.789 MB / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001636/0.3481, allocations: 1.017 MB / 1.071 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.055e-05/0.3482, allocations: 4 kB / 1.071 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0006309/0.3489, allocations: 167.5 kB / 1.071 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002824/0.3491, allocations: 111.6 kB / 1.071 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004721/0.3496, allocations: 170.7 kB / 1.071 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002212/0.3499, allocations: 167.6 kB / 1.072 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.35, allocations: 29.08 kB / 1.072 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001011/0.3501, allocations: 59.78 kB / 1.072 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.3502, allocations: 75.67 kB / 1.072 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.72e-05/0.3503, allocations: 8 kB / 1.072 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001415/0.3504, allocations: 59.91 kB / 1.072 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.112e-05/0.3505, allocations: 39.91 kB / 1.072 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.641e-05/0.3506, allocations: 59.61 kB / 1.072 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002882/0.3509, allocations: 207.6 kB / 1.072 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3509, allocations: 0 / 1.072 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.904e-06/0.3509, allocations: 0 / 1.072 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.3509, allocations: 0 / 1.072 GB, free: 6.395 MB / 0.8262 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.0007498/0.3517, allocations: 496.3 kB / 1.073 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.3517, allocations: 8.031 kB / 1.073 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.009e-05/0.3518, allocations: 16.75 kB / 1.073 GB, free: 5.832 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002784/0.3521, allocations: 248.8 kB / 1.073 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.3521, allocations: 4.375 kB / 1.073 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.886e-05/0.3521, allocations: 12.12 kB / 1.073 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001839/0.3523, allocations: 87.31 kB / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.171e-06/0.3523, allocations: 3.938 kB / 1.073 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.3523, allocations: 0 / 1.073 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.803e-05/0.3524, allocations: 4 kB / 1.073 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.119e-05/0.3525, allocations: 39.97 kB / 1.073 GB, free: 5.391 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005118/0.353, allocations: 360.6 kB / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001763/0.3532, allocations: 70.67 kB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.666e-05/0.3532, allocations: 32.84 kB / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.874e-05/0.3533, allocations: 0 / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001626/0.3534, allocations: 91.3 kB / 1.073 GB, free: 4.773 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.3535, allocations: 4 kB / 1.073 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0003245/0.3538, allocations: 141.4 kB / 1.074 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/0.3538, allocations: 81.11 kB / 1.074 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002703/0.3541, allocations: 262.7 kB / 1.074 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.3541, allocations: 29.7 kB / 1.074 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.361e-05/0.3542, allocations: 112.1 kB / 1.074 GB, free: 4.109 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.717e-05/0.3543, allocations: 27.64 kB / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.576e-05/0.3543, allocations: 37.7 kB / 1.074 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.3544, allocations: 326.8 kB / 1.074 GB, free: 3.711 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.303e-05/0.3545, allocations: 27.98 kB / 1.074 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.876e-05/0.3546, allocations: 55.53 kB / 1.075 GB, free: 3.617 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001287/0.3548, allocations: 81.98 kB / 1.075 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3548, allocations: 3.938 kB / 1.075 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001879/0.355, allocations: 117.4 kB / 1.075 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.593e-05/0.355, allocations: 9.719 kB / 1.075 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.355, allocations: 3.984 kB / 1.075 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.3551, allocations: 0 / 1.075 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.187e-05/0.3551, allocations: 8 kB / 1.075 GB, free: 3.387 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.3552, allocations: 4 kB / 1.075 GB, free: 3.383 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.91e-05/0.3552, allocations: 15.94 kB / 1.075 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.653e-06/0.3552, allocations: 4.031 kB / 1.075 GB, free: 3.363 MB / 0.8262 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.0001374/0.3554, allocations: 155.7 kB / 1.075 GB, free: 3.203 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.787e-05/0.3554, allocations: 11.81 kB / 1.075 GB, free: 3.191 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.525e-05/0.3555, allocations: 21.41 kB / 1.075 GB, free: 3.172 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/0.3555, allocations: 4 kB / 1.075 GB, free: 3.168 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.3555, allocations: 3.984 kB / 1.075 GB, free: 3.164 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3555, allocations: 3.938 kB / 1.075 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001902/0.3557, allocations: 221.4 kB / 1.075 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3557, allocations: 0 / 1.075 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.993e-05/0.3557, allocations: 8 kB / 1.075 GB, free: 2.887 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.3557, allocations: 3.984 kB / 1.075 GB, free: 2.883 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.3557, allocations: 8 kB / 1.075 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3558, allocations: 0 / 1.075 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3558, allocations: 0 / 1.075 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002133/0.356, allocations: 144.8 kB / 1.075 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.572e-05/0.356, allocations: 88.92 kB / 1.075 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.847e-05/0.3561, allocations: 8 kB / 1.075 GB, free: 2.602 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.432e-05/0.3561, allocations: 15.97 kB / 1.075 GB, free: 2.586 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.027e-05/0.3562, allocations: 0 / 1.075 GB, free: 2.586 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.194e-05/0.3562, allocations: 7.938 kB / 1.075 GB, free: 2.578 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001747/0.3564, allocations: 192.6 kB / 1.076 GB, free: 2.391 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3564, allocations: 0 / 1.076 GB, free: 2.391 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000235/0.3566, allocations: 31.94 kB / 1.076 GB, free: 2.359 MB / 0.8262 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.0009709/0.3576, allocations: 426.2 kB / 1.076 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002164/0.3578, allocations: 79.89 kB / 1.076 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3578, allocations: 0 / 1.076 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.162e-05/0.3579, allocations: 39.92 kB / 1.076 GB, free: 1.977 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002941/0.3582, allocations: 44.98 kB / 1.076 GB, free: 1.938 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005846/0.3588, allocations: 296.3 kB / 1.076 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003701/0.3592, allocations: 0.724 MB / 1.077 GB, free: 0.875 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.815e-05/0.3593, allocations: 21.41 kB / 1.077 GB, free: 0.8555 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.42e-05/0.3594, allocations: 23.44 kB / 1.077 GB, free: 0.832 MB / 0.8262 GB Notification: Performance of SimCode: time 9.41e-07/0.3594, allocations: 0 / 1.077 GB, free: 0.832 MB / 0.8262 GB Notification: Performance of Templates: time 0.00627/0.3656, allocations: 2.284 MB / 1.079 GB, free: 14.57 MB / 0.8419 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches