Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_10_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.00721/0.00721, allocations: 102.6 kB / 15.73 MB, free: 6.02 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.001195/0.001195, allocations: 196.2 kB / 16.68 MB, free: 5.941 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.327/1.327, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.563/2.563, allocations: 437 MB / 0.7105 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 64.12 kB / 1.018 GB, free: 9.918 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8128/0.8142, allocations: 151.6 MB / 1.166 GB, free: 3.789 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.00291/0.8171, allocations: 1.787 MB / 1.168 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001596/0.8187, allocations: 1.006 MB / 1.169 GB, free: 0.9727 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.041e-05/0.8188, allocations: 0 / 1.169 GB, free: 0.9727 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.000579/0.8194, allocations: 175.5 kB / 1.169 GB, free: 0.8008 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002949/0.8197, allocations: 107.6 kB / 1.169 GB, free: 0.6953 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000453/0.8202, allocations: 166.3 kB / 1.169 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002092/0.8204, allocations: 171.5 kB / 1.169 GB, free: 376 kB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.8205, allocations: 25.11 kB / 1.17 GB, free: 352 kB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.8207, allocations: 71.69 kB / 1.17 GB, free: 280 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001119/0.8208, allocations: 71.69 kB / 1.17 GB, free: 208 kB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.606e-05/0.8208, allocations: 8 kB / 1.17 GB, free: 200 kB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001458/0.821, allocations: 59.97 kB / 1.17 GB, free: 140 kB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 7.915e-05/0.8211, allocations: 47.81 kB / 1.17 GB, free: 92 kB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.257e-05/0.8211, allocations: 55.62 kB / 1.17 GB, free: 36 kB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003114/0.8215, allocations: 205.6 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.8215, allocations: 0 / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.463e-06/0.8215, allocations: 0 / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.8215, allocations: 4 kB / 1.17 GB, free: 15.83 MB / 0.9044 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.0007013/0.8222, allocations: 496.3 kB / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.8222, allocations: 12.92 kB / 1.17 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.604e-05/0.8223, allocations: 34.75 kB / 1.171 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.767e-05/0.8223, allocations: 16.75 kB / 1.171 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003076/0.8226, allocations: 252.8 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.8227, allocations: 4.375 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.849e-05/0.8227, allocations: 7.938 kB / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000191/0.8229, allocations: 91.38 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.8229, allocations: 3.938 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.8229, allocations: 4 kB / 1.171 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.697e-05/0.823, allocations: 0 / 1.171 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001021/0.8231, allocations: 35.98 kB / 1.171 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005073/0.8236, allocations: 352.6 kB / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001943/0.8238, allocations: 82.61 kB / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.155e-05/0.8239, allocations: 32.84 kB / 1.171 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.8239, allocations: 0 / 1.171 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001697/0.8241, allocations: 83.38 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=10): time 3.005e-06/0.8241, allocations: 3.984 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10): time 0.0003614/0.8244, allocations: 145.3 kB / 1.172 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.699e-05/0.8245, allocations: 89.09 kB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002678/0.8248, allocations: 262.8 kB / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.658e-05/0.8248, allocations: 25.7 kB / 1.172 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.485e-05/0.8249, allocations: 116.1 kB / 1.172 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.856e-05/0.8249, allocations: 19.72 kB / 1.172 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.772e-05/0.825, allocations: 29.7 kB / 1.172 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.8251, allocations: 334.8 kB / 1.172 GB, free: 13.1 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.653e-05/0.8252, allocations: 27.94 kB / 1.172 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.8253, allocations: 59.41 kB / 1.173 GB, free: 13 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001363/0.8255, allocations: 69.81 kB / 1.173 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.8255, allocations: 3.938 kB / 1.173 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002228/0.8257, allocations: 121.4 kB / 1.173 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.8258, allocations: 8 kB / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.8258, allocations: 0 / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.8258, allocations: 0 / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.764e-05/0.8259, allocations: 15.92 kB / 1.173 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.8259, allocations: 4 kB / 1.173 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.405e-05/0.826, allocations: 11.88 kB / 1.173 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.826, allocations: 0 / 1.173 GB, free: 12.76 MB / 0.9044 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.0001369/0.8261, allocations: 145.9 kB / 1.173 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.809e-05/0.8261, allocations: 11.81 kB / 1.173 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.938e-05/0.8262, allocations: 21.77 kB / 1.173 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/0.8262, allocations: 8 kB / 1.173 GB, free: 12.56 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.8262, allocations: 0 / 1.173 GB, free: 12.56 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.8262, allocations: 3.938 kB / 1.173 GB, free: 12.56 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002121/0.8265, allocations: 221.4 kB / 1.173 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.8265, allocations: 0 / 1.173 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.629e-05/0.8265, allocations: 7.984 kB / 1.173 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.8265, allocations: 3.938 kB / 1.173 GB, free: 12.28 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.8265, allocations: 8 kB / 1.173 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.8265, allocations: 4 kB / 1.173 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.8265, allocations: 160 / 1.173 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002404/0.8268, allocations: 140.9 kB / 1.173 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.641e-05/0.8268, allocations: 100.8 kB / 1.173 GB, free: 12 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.506e-05/0.8269, allocations: 0 / 1.173 GB, free: 12 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.572e-05/0.8269, allocations: 11.98 kB / 1.173 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.971e-05/0.827, allocations: 11.86 kB / 1.173 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.827, allocations: 8 kB / 1.173 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001849/0.8272, allocations: 192.4 kB / 1.174 GB, free: 11.78 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8272, allocations: 0 / 1.174 GB, free: 11.78 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002562/0.8275, allocations: 31.98 kB / 1.174 GB, free: 11.75 MB / 0.9044 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.001407/0.8289, allocations: 1.008 MB / 1.175 GB, free: 10.88 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002181/0.8291, allocations: 71.97 kB / 1.175 GB, free: 10.8 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.8291, allocations: 0 / 1.175 GB, free: 10.8 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 8.802e-05/0.8292, allocations: 35.92 kB / 1.175 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003247/0.8296, allocations: 43.77 kB / 1.175 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/0.8318, allocations: 1.959 MB / 1.177 GB, free: 8.688 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002829/0.8321, allocations: 0.7278 MB / 1.177 GB, free: 7.934 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 8.934e-05/0.8322, allocations: 25.7 kB / 1.177 GB, free: 7.906 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.827e-05/0.8323, allocations: 47.42 kB / 1.177 GB, free: 7.863 MB / 0.9044 GB Notification: Performance of SimCode: time 6.31e-07/0.8323, allocations: 4 kB / 1.177 GB, free: 7.859 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02183/0.8541, allocations: 4.513 MB / 1.182 GB, free: 3.426 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.56/9.414, allocations: 15.83 kB / 1.182 GB, free: 3.41 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.BooleanReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.BooleanReplicator_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_BooleanReplicator_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_BooleanReplicator.fmu > Buildings_10_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.BooleanReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_BooleanReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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