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.001049/0.001049, allocations: 92.62 kB / 16.02 MB, free: 80 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.001334/0.001334, allocations: 176.8 kB / 16.92 MB, free: 6.652 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.41/1.41, allocations: 223.3 MB / 241 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.758/2.758, allocations: 462.7 MB / 0.7371 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000546/0.0005461, allocations: 11.25 kB / 0.9034 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3096/0.3101, allocations: 159.6 MB / 1.059 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.002092/0.3123, allocations: 1.496 MB / 1.061 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001565/0.3139, allocations: 0.994 MB / 1.062 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.078e-05/0.314, allocations: 0 / 1.062 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005582/0.3145, allocations: 155.6 kB / 1.062 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.00024/0.3148, allocations: 111.7 kB / 1.062 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.00042/0.3152, allocations: 146.8 kB / 1.062 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001986/0.3154, allocations: 171.5 kB / 1.062 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001575/0.3156, allocations: 25.09 kB / 1.062 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.578e-05/0.3157, allocations: 51.77 kB / 1.062 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001023/0.3158, allocations: 67.69 kB / 1.062 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.75e-05/0.3158, allocations: 8 kB / 1.062 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001177/0.3159, allocations: 47.97 kB / 1.062 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.924e-05/0.316, allocations: 43.83 kB / 1.063 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.373e-05/0.3161, allocations: 77.33 kB / 1.063 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001974/0.3163, allocations: 152 kB / 1.063 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.3163, allocations: 0 / 1.063 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3163, allocations: 3.938 kB / 1.063 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.598e-06/0.3163, allocations: 0 / 1.063 GB, free: 1.391 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.0006556/0.317, allocations: 476.5 kB / 1.063 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.317, allocations: 15.95 kB / 1.063 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.706e-05/0.3171, allocations: 16.75 kB / 1.063 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003011/0.3174, allocations: 248.8 kB / 1.063 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.3174, allocations: 384 / 1.063 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.821e-05/0.3175, allocations: 8.125 kB / 1.063 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001944/0.3177, allocations: 91.31 kB / 1.064 GB, free: 456 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.292e-06/0.3177, allocations: 0 / 1.064 GB, free: 456 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/0.3177, allocations: 4 kB / 1.064 GB, free: 452 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.142e-05/0.3177, allocations: 4 kB / 1.064 GB, free: 448 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.377e-05/0.3178, allocations: 31.98 kB / 1.064 GB, free: 416 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004844/0.3183, allocations: 360.6 kB / 1.064 GB, free: 4 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002168/0.3185, allocations: 78.75 kB / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.066e-05/0.3186, allocations: 32.95 kB / 1.064 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.3186, allocations: 3.938 kB / 1.064 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001663/0.3188, allocations: 87.31 kB / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.462e-06/0.3188, allocations: 0 / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0003365/0.3192, allocations: 141.7 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.76e-05/0.3192, allocations: 81.05 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002533/0.3195, allocations: 266.9 kB / 1.065 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.3195, allocations: 29.7 kB / 1.065 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.421e-05/0.3196, allocations: 116.1 kB / 1.065 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.093e-05/0.3196, allocations: 31.55 kB / 1.065 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.09e-05/0.3197, allocations: 17.72 kB / 1.065 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001133/0.3198, allocations: 330.8 kB / 1.065 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.43e-05/0.3199, allocations: 24 kB / 1.065 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.343e-05/0.32, allocations: 63.41 kB / 1.065 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001289/0.3201, allocations: 73.64 kB / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3201, allocations: 0 / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001938/0.3203, allocations: 113.4 kB / 1.065 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.3203, allocations: 8 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.3203, allocations: 0 / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.3204, allocations: 64 / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.48e-05/0.3204, allocations: 15.98 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.3204, allocations: 4 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.277e-05/0.3205, allocations: 7.938 kB / 1.065 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.886e-06/0.3205, allocations: 4 kB / 1.065 GB, free: 14.4 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.0001637/0.3207, allocations: 141.8 kB / 1.066 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.501e-05/0.3207, allocations: 15.81 kB / 1.066 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.479e-05/0.3208, allocations: 21.39 kB / 1.066 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.3208, allocations: 8 kB / 1.066 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.3208, allocations: 0 / 1.066 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.3208, allocations: 3.938 kB / 1.066 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001925/0.321, allocations: 229.5 kB / 1.066 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.321, allocations: 3.938 kB / 1.066 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.2e-05/0.3211, allocations: 3.984 kB / 1.066 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.3211, allocations: 4 kB / 1.066 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.3211, allocations: 7.984 kB / 1.066 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.3211, allocations: 0 / 1.066 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-06/0.3211, allocations: 0 / 1.066 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002224/0.3213, allocations: 152.8 kB / 1.066 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.838e-05/0.3214, allocations: 96.89 kB / 1.066 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.658e-05/0.3214, allocations: 4 kB / 1.066 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.549e-05/0.3215, allocations: 7.984 kB / 1.066 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.581e-05/0.3215, allocations: 4 kB / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.3215, allocations: 7.938 kB / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001772/0.3217, allocations: 196.6 kB / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3217, allocations: 4 kB / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002467/0.322, allocations: 28 kB / 1.066 GB, free: 13.38 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.000987/0.323, allocations: 424.1 kB / 1.067 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001979/0.3232, allocations: 71.91 kB / 1.067 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3232, allocations: 0 / 1.067 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.191e-05/0.3233, allocations: 39.92 kB / 1.067 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000297/0.3236, allocations: 35.98 kB / 1.067 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005777/0.3242, allocations: 364.2 kB / 1.067 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003513/0.3245, allocations: 0.7204 MB / 1.068 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.213e-05/0.3246, allocations: 19.42 kB / 1.068 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of SimCode: time 3e-07/0.3246, allocations: 0 / 1.068 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of Templates: time 0.004458/0.3291, allocations: 2.529 MB / 1.07 GB, free: 9.309 MB / 0.8262 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/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