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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007828/0.007828, allocations: 102.8 kB / 15.73 MB, free: 5.984 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.001839/0.001839, allocations: 195.2 kB / 16.67 MB, free: 5.91 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.643/2.643, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001558/0.001558, allocations: 64.14 kB / 1.054 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8075/0.809, allocations: 157.4 MB / 1.207 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003411/0.8125, allocations: 1.793 MB / 1.209 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001736/0.8143, allocations: 1.013 MB / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.8144, allocations: 0 / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0006732/0.8151, allocations: 171.5 kB / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0003262/0.8155, allocations: 107.6 kB / 1.21 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005441/0.816, allocations: 166.5 kB / 1.21 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002785/0.8163, allocations: 175.6 kB / 1.211 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.8164, allocations: 21.12 kB / 1.211 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/0.8166, allocations: 75.62 kB / 1.211 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001271/0.8167, allocations: 67.75 kB / 1.211 GB, free: 10.06 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.564e-05/0.8168, allocations: 8 kB / 1.211 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001637/0.8169, allocations: 59.95 kB / 1.211 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 7.302e-05/0.817, allocations: 39.84 kB / 1.211 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.782e-05/0.8171, allocations: 67.53 kB / 1.211 GB, free: 9.887 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003204/0.8174, allocations: 193.7 kB / 1.211 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.8175, allocations: 4 kB / 1.211 GB, free: 9.695 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.233e-06/0.8175, allocations: 0 / 1.211 GB, free: 9.695 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.124e-06/0.8175, allocations: 0 / 1.211 GB, free: 9.695 MB / 0.9356 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.000754/0.8182, allocations: 496.3 kB / 1.212 GB, free: 9.156 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.8183, allocations: 8.031 kB / 1.212 GB, free: 9.148 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.122e-05/0.8183, allocations: 42.69 kB / 1.212 GB, free: 9.098 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.431e-05/0.8184, allocations: 16.75 kB / 1.212 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000326/0.8187, allocations: 248.9 kB / 1.212 GB, free: 8.797 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.8187, allocations: 384 / 1.212 GB, free: 8.797 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.796e-05/0.8188, allocations: 11.94 kB / 1.212 GB, free: 8.785 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001951/0.819, allocations: 91.31 kB / 1.212 GB, free: 8.684 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.819, allocations: 0 / 1.212 GB, free: 8.684 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/0.819, allocations: 3.984 kB / 1.212 GB, free: 8.68 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.061e-05/0.819, allocations: 7.984 kB / 1.212 GB, free: 8.672 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001013/0.8191, allocations: 35.98 kB / 1.212 GB, free: 8.637 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005114/0.8197, allocations: 352.6 kB / 1.212 GB, free: 8.242 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002045/0.8199, allocations: 78.61 kB / 1.212 GB, free: 8.156 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.144e-05/0.82, allocations: 40.78 kB / 1.212 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.077e-05/0.82, allocations: 0 / 1.212 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001734/0.8202, allocations: 83.33 kB / 1.213 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.8202, allocations: 0 / 1.213 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0003737/0.8206, allocations: 141.5 kB / 1.213 GB, free: 7.875 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.247e-05/0.8206, allocations: 81.11 kB / 1.213 GB, free: 7.777 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002745/0.8209, allocations: 270.8 kB / 1.213 GB, free: 7.5 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.8209, allocations: 25.7 kB / 1.213 GB, free: 7.469 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.939e-05/0.821, allocations: 120.1 kB / 1.213 GB, free: 7.348 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.26e-05/0.821, allocations: 23.7 kB / 1.213 GB, free: 7.324 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.622e-05/0.8211, allocations: 25.72 kB / 1.213 GB, free: 7.293 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.8212, allocations: 334.8 kB / 1.214 GB, free: 6.957 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.423e-05/0.8213, allocations: 20 kB / 1.214 GB, free: 6.938 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.493e-05/0.8214, allocations: 67.34 kB / 1.214 GB, free: 6.859 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001386/0.8215, allocations: 73.75 kB / 1.214 GB, free: 6.781 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.8215, allocations: 3.969 kB / 1.214 GB, free: 6.777 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002146/0.8218, allocations: 121.8 kB / 1.214 GB, free: 6.652 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.8218, allocations: 4 kB / 1.214 GB, free: 6.648 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.8218, allocations: 7.938 kB / 1.214 GB, free: 6.641 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.8218, allocations: 0 / 1.214 GB, free: 6.641 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.916e-05/0.8219, allocations: 11.98 kB / 1.214 GB, free: 6.629 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.8219, allocations: 0 / 1.214 GB, free: 6.629 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.576e-05/0.822, allocations: 11.88 kB / 1.214 GB, free: 6.617 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.822, allocations: 4 kB / 1.214 GB, free: 6.613 MB / 0.9356 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.0001317/0.8221, allocations: 141.9 kB / 1.214 GB, free: 6.465 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.969e-05/0.8222, allocations: 15.81 kB / 1.214 GB, free: 6.449 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.892e-05/0.8222, allocations: 21.39 kB / 1.214 GB, free: 6.426 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.8222, allocations: 8 kB / 1.214 GB, free: 6.418 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.8223, allocations: 0 / 1.214 GB, free: 6.418 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.8223, allocations: 3.938 kB / 1.214 GB, free: 6.414 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000195/0.8225, allocations: 225.4 kB / 1.214 GB, free: 6.145 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.8225, allocations: 0 / 1.214 GB, free: 6.145 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.532e-05/0.8225, allocations: 7.984 kB / 1.214 GB, free: 6.137 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.8225, allocations: 4 kB / 1.214 GB, free: 6.133 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.8225, allocations: 0 / 1.214 GB, free: 6.133 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.8225, allocations: 4 kB / 1.214 GB, free: 6.129 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.8225, allocations: 0 / 1.214 GB, free: 6.129 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002451/0.8228, allocations: 148.8 kB / 1.214 GB, free: 5.965 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.452e-05/0.8229, allocations: 92.86 kB / 1.214 GB, free: 5.855 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.695e-05/0.8229, allocations: 4 kB / 1.215 GB, free: 5.852 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.68e-05/0.823, allocations: 0 / 1.215 GB, free: 5.852 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.676e-05/0.823, allocations: 19.92 kB / 1.215 GB, free: 5.832 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.823, allocations: 4 kB / 1.215 GB, free: 5.828 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001865/0.8232, allocations: 192.4 kB / 1.215 GB, free: 5.641 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.51e-07/0.8232, allocations: 0 / 1.215 GB, free: 5.641 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002572/0.8235, allocations: 35.98 kB / 1.215 GB, free: 5.605 MB / 0.9356 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.001429/0.8249, allocations: 1.001 MB / 1.216 GB, free: 4.738 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002658/0.8252, allocations: 71.91 kB / 1.216 GB, free: 4.668 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.8252, allocations: 4 kB / 1.216 GB, free: 4.664 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.223e-05/0.8253, allocations: 31.98 kB / 1.216 GB, free: 4.633 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003088/0.8256, allocations: 50.42 kB / 1.216 GB, free: 4.586 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002215/0.8278, allocations: 1.962 MB / 1.218 GB, free: 2.543 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002835/0.8281, allocations: 0.7317 MB / 1.219 GB, free: 1.785 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.528e-05/0.8282, allocations: 21.72 kB / 1.219 GB, free: 1.762 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.973e-05/0.8283, allocations: 51.41 kB / 1.219 GB, free: 1.711 MB / 0.9356 GB Notification: Performance of SimCode: time 4.51e-07/0.8283, allocations: 0 / 1.219 GB, free: 1.711 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02305/0.8514, allocations: 4.562 MB / 1.223 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.897/8.749, allocations: 1.719 kB / 1.223 GB, free: 13.27 MB / 0.9512 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_BooleanReplicator_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_BooleanReplicator.fmu > 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) "" Variables in the reference:time,booRep.u,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4] Variables in the result:booRep.nout,booRep.u,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4],booTab.combiTimeTable.columns[1],booTab.combiTimeTable.extrapolation,booTab.combiTimeTable.nout,booTab.combiTimeTable.offset[1],booTab.combiTimeTable.shiftTime,booTab.combiTimeTable.smoothness,booTab.combiTimeTable.startTime,booTab.combiTimeTable.t_max,booTab.combiTimeTable.t_maxScaled,booTab.combiTimeTable.t_min,booTab.combiTimeTable.t_minScaled,booTab.combiTimeTable.tableOnFile,booTab.combiTimeTable.table[1,1],booTab.combiTimeTable.table[1,2],booTab.combiTimeTable.table[2,1],booTab.combiTimeTable.table[2,2],booTab.combiTimeTable.table[3,1],booTab.combiTimeTable.table[3,2],booTab.combiTimeTable.table[4,1],booTab.combiTimeTable.table[4,2],booTab.combiTimeTable.table[5,1],booTab.combiTimeTable.table[5,2],booTab.combiTimeTable.timeEvents,booTab.combiTimeTable.timeScale,booTab.combiTimeTable.verboseExtrapolation,booTab.combiTimeTable.verboseRead,booTab.combiTimeTable.y[1],booTab.extrapolation,booTab.realToBoolean.threshold,booTab.realToBoolean.u,booTab.realToBoolean.y,booTab.shiftTime,booTab.startTime,booTab.startValue,booTab.table[1],booTab.table[2],booTab.table[3],booTab.table[4],booTab.y,time