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.001327/0.001327, allocations: 115.8 kB / 16.37 MB, free: 6.012 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.001509/0.001509, allocations: 193.4 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.488/1.488, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.452/2.452, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 64.25 kB / 0.8773 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2894, allocations: 153 MB / 1.027 GB, free: 2 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003263/0.2927, allocations: 1.799 MB / 1.028 GB, free: 196 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001565/0.2943, allocations: 1.014 MB / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.81e-05/0.2944, allocations: 4 kB / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005698/0.295, allocations: 159.5 kB / 1.03 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000276/0.2953, allocations: 115.6 kB / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004493/0.2957, allocations: 167 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002156/0.296, allocations: 175.6 kB / 1.03 GB, free: 14.56 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001128/0.2961, allocations: 21.11 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.72e-05/0.2962, allocations: 67.7 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000101/0.2963, allocations: 67.75 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.088e-05/0.2963, allocations: 8 kB / 1.03 GB, free: 14.4 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000131/0.2965, allocations: 71.88 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.734e-05/0.2965, allocations: 43.91 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.833e-05/0.2966, allocations: 55.62 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002514/0.2969, allocations: 199.4 kB / 1.031 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2969, allocations: 0 / 1.031 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2969, allocations: 0 / 1.031 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.2969, allocations: 0 / 1.031 GB, free: 14.04 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.0006456/0.2976, allocations: 0.4924 MB / 1.031 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.2976, allocations: 8.031 kB / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5e-05/0.2976, allocations: 16.75 kB / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002856/0.2979, allocations: 252.8 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/0.298, allocations: 384 / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.893e-05/0.298, allocations: 16.05 kB / 1.031 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001836/0.2982, allocations: 91.31 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.2982, allocations: 0 / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.2982, allocations: 4 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.694e-05/0.2982, allocations: 3.984 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.617e-05/0.2983, allocations: 43.92 kB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000467/0.2988, allocations: 348.6 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001861/0.299, allocations: 74.67 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.812e-05/0.2991, allocations: 32.84 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.036e-05/0.2991, allocations: 0 / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001591/0.2993, allocations: 91.3 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.653e-06/0.2993, allocations: 4 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0003231/0.2996, allocations: 141.4 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/0.2997, allocations: 85.11 kB / 1.032 GB, free: 12.15 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002613/0.3, allocations: 259 kB / 1.032 GB, free: 11.89 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.429e-05/0.3, allocations: 25.7 kB / 1.032 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.951e-05/0.3001, allocations: 124 kB / 1.033 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.532e-05/0.3001, allocations: 19.75 kB / 1.033 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.68e-05/0.3002, allocations: 33.7 kB / 1.033 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001034/0.3003, allocations: 326.8 kB / 1.033 GB, free: 11.34 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.999e-05/0.3003, allocations: 27.98 kB / 1.033 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.435e-05/0.3004, allocations: 55.42 kB / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.3006, allocations: 85.97 kB / 1.033 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3006, allocations: 0 / 1.033 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002039/0.3008, allocations: 121.3 kB / 1.033 GB, free: 11.04 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.3008, allocations: 8 kB / 1.033 GB, free: 11.03 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.3008, allocations: 0 / 1.033 GB, free: 11.03 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.3008, allocations: 0 / 1.033 GB, free: 11.03 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.813e-05/0.3009, allocations: 12 kB / 1.033 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.3009, allocations: 4 kB / 1.033 GB, free: 11.01 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.341e-05/0.301, allocations: 15.95 kB / 1.033 GB, free: 11 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.301, allocations: 0 / 1.033 GB, free: 11 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.0001218/0.3011, allocations: 146.7 kB / 1.033 GB, free: 10.84 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.566e-05/0.3012, allocations: 15.75 kB / 1.033 GB, free: 10.83 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.628e-05/0.3012, allocations: 25.39 kB / 1.033 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.3012, allocations: 4 kB / 1.033 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3013, allocations: 0 / 1.033 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.3013, allocations: 3.938 kB / 1.033 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001814/0.3014, allocations: 217.5 kB / 1.034 GB, free: 10.54 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3015, allocations: 4 kB / 1.034 GB, free: 10.53 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.188e-05/0.3015, allocations: 4 kB / 1.034 GB, free: 10.53 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3015, allocations: 0 / 1.034 GB, free: 10.53 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-06/0.3015, allocations: 4 kB / 1.034 GB, free: 10.52 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.3015, allocations: 3.984 kB / 1.034 GB, free: 10.52 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3015, allocations: 0 / 1.034 GB, free: 10.52 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000226/0.3018, allocations: 152.7 kB / 1.034 GB, free: 10.35 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.24e-05/0.3018, allocations: 89.02 kB / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.809e-05/0.3019, allocations: 7.984 kB / 1.034 GB, free: 10.24 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.226e-05/0.3019, allocations: 8 kB / 1.034 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.756e-05/0.302, allocations: 7.922 kB / 1.034 GB, free: 10.22 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.302, allocations: 7.938 kB / 1.034 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001719/0.3021, allocations: 187.2 kB / 1.034 GB, free: 10.03 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.71e-07/0.3022, allocations: 0 / 1.034 GB, free: 10.03 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000257/0.3024, allocations: 35.91 kB / 1.034 GB, free: 9.996 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.001012/0.3034, allocations: 427.5 kB / 1.035 GB, free: 9.727 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002089/0.3037, allocations: 75.89 kB / 1.035 GB, free: 9.652 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3037, allocations: 0 / 1.035 GB, free: 9.652 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.981e-05/0.3038, allocations: 39.92 kB / 1.035 GB, free: 9.613 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.3041, allocations: 50.73 kB / 1.035 GB, free: 9.57 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005078/0.3046, allocations: 287.1 kB / 1.035 GB, free: 9.266 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002749/0.3049, allocations: 0.728 MB / 1.036 GB, free: 8.512 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.788e-05/0.305, allocations: 21.72 kB / 1.036 GB, free: 8.492 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.212e-05/0.305, allocations: 15.44 kB / 1.036 GB, free: 8.477 MB / 0.8106 GB Notification: Performance of SimCode: time 2.91e-07/0.305, allocations: 0 / 1.036 GB, free: 8.477 MB / 0.8106 GB Notification: Performance of Templates: time 0.005297/0.3103, allocations: 2.284 MB / 1.038 GB, free: 6.219 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 gbode -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