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.001344/0.001344, allocations: 107.5 kB / 15.99 MB, free: 6.355 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.00133/0.00133, allocations: 196 kB / 16.91 MB, free: 6.195 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.437/1.437, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.857/2.857, allocations: 482.4 MB / 0.755 GB, free: 7.191 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 67.53 kB / 0.924 GB, free: 356 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7848/0.7868, allocations: 162.2 MB / 1.082 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003187/0.79, allocations: 1.827 MB / 1.084 GB, free: 356 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001728/0.7918, allocations: 1.004 MB / 1.085 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.7919, allocations: 5.156 kB / 1.085 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0006667/0.7926, allocations: 163.3 kB / 1.085 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0003204/0.7929, allocations: 108.8 kB / 1.085 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000493/0.7934, allocations: 150.6 kB / 1.086 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002557/0.7937, allocations: 168.5 kB / 1.086 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.7938, allocations: 22.83 kB / 1.086 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001348/0.794, allocations: 71.81 kB / 1.086 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001347/0.7941, allocations: 74.89 kB / 1.086 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.736e-05/0.7942, allocations: 12.22 kB / 1.086 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001715/0.7943, allocations: 62.36 kB / 1.086 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 9.842e-05/0.7944, allocations: 40.7 kB / 1.086 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.7946, allocations: 60.61 kB / 1.086 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002846/0.7948, allocations: 151.8 kB / 1.086 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.7949, allocations: 4 kB / 1.086 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.633e-06/0.7949, allocations: 0 / 1.086 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.7949, allocations: 1 kB / 1.086 GB, free: 15.21 MB / 0.8419 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.0007979/0.7957, allocations: 498 kB / 1.087 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.7957, allocations: 13.66 kB / 1.087 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.905e-05/0.7958, allocations: 15.12 kB / 1.087 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003315/0.7961, allocations: 249.9 kB / 1.087 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.7962, allocations: 6.906 kB / 1.087 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.127e-05/0.7962, allocations: 7.922 kB / 1.087 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002112/0.7964, allocations: 90.78 kB / 1.087 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.7964, allocations: 3.984 kB / 1.087 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.7964, allocations: 5.297 kB / 1.087 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.989e-05/0.7965, allocations: 6.891 kB / 1.087 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001209/0.7966, allocations: 37.14 kB / 1.087 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005797/0.7972, allocations: 353.5 kB / 1.087 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002126/0.7974, allocations: 74.52 kB / 1.088 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.929e-05/0.7975, allocations: 40.92 kB / 1.088 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.7975, allocations: 0.6562 kB / 1.088 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001839/0.7977, allocations: 84.41 kB / 1.088 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.7977, allocations: 0 / 1.088 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of matching and sorting (n=10): time 0.0003858/0.7981, allocations: 141 kB / 1.088 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.89e-05/0.7982, allocations: 79.06 kB / 1.088 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003174/0.7985, allocations: 270 kB / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.7986, allocations: 26.73 kB / 1.088 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.455e-05/0.7986, allocations: 116 kB / 1.088 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.537e-05/0.7987, allocations: 25.52 kB / 1.088 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.15e-05/0.7987, allocations: 26.69 kB / 1.088 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001718/0.7989, allocations: 336.4 kB / 1.089 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.291e-05/0.799, allocations: 26.69 kB / 1.089 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001007/0.7991, allocations: 63.19 kB / 1.089 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001367/0.7993, allocations: 73.78 kB / 1.089 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.7993, allocations: 0 / 1.089 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002181/0.7995, allocations: 114.8 kB / 1.089 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.7995, allocations: 6.281 kB / 1.089 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.7995, allocations: 3.938 kB / 1.089 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.7995, allocations: 2.422 kB / 1.089 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.477e-05/0.7996, allocations: 12.94 kB / 1.089 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.7996, allocations: 2.25 kB / 1.089 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.721e-05/0.7997, allocations: 12.77 kB / 1.089 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.7997, allocations: 3 kB / 1.089 GB, free: 12.95 MB / 0.8419 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.0001469/0.7999, allocations: 145.9 kB / 1.089 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.292e-05/0.7999, allocations: 20.3 kB / 1.089 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.945e-05/0.8, allocations: 17.69 kB / 1.089 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/0.8, allocations: 3.219 kB / 1.089 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.8, allocations: 4 kB / 1.089 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.8, allocations: 4.594 kB / 1.089 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002536/0.8003, allocations: 227.2 kB / 1.089 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.8003, allocations: 1.188 kB / 1.089 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.441e-05/0.8003, allocations: 6.828 kB / 1.089 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.8003, allocations: 2.438 kB / 1.089 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.8003, allocations: 0.5156 kB / 1.089 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.8003, allocations: 1.094 kB / 1.089 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.8004, allocations: 0.6094 kB / 1.089 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002818/0.8006, allocations: 144.9 kB / 1.089 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.148e-05/0.8007, allocations: 99.08 kB / 1.09 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.963e-05/0.8008, allocations: 1.703 kB / 1.09 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.592e-05/0.8008, allocations: 7.641 kB / 1.09 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.177e-05/0.8009, allocations: 9.469 kB / 1.09 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.8009, allocations: 7.469 kB / 1.09 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002152/0.8011, allocations: 198.1 kB / 1.09 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8011, allocations: 1.312 kB / 1.09 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002591/0.8014, allocations: 31.97 kB / 1.09 GB, free: 12.23 MB / 0.8419 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.001555/0.8029, allocations: 416.6 kB / 1.09 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002576/0.8032, allocations: 80.17 kB / 1.09 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.8032, allocations: 0 / 1.09 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 9.489e-05/0.8033, allocations: 41.98 kB / 1.09 GB, free: 12 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.8037, allocations: 42.34 kB / 1.09 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006528/0.8043, allocations: 374.1 kB / 1.091 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003968/0.8048, allocations: 0.7223 MB / 1.091 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.184e-05/0.8048, allocations: 23.08 kB / 1.091 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of SimCode: time 2.7e-07/0.8048, allocations: 0 / 1.091 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of Templates: time 0.005671/0.8105, allocations: 2.547 MB / 1.094 GB, free: 10.71 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=400 -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