Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: 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_9_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_9_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.001028/0.001028, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.009864/0.009864, allocations: 168.4 kB / 16.26 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.478/1.478, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.597/2.597, allocations: 390.9 MB / 0.6663 GB, free: 2.371 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003856/0.0003856, allocations: 8 kB / 0.816 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9103/0.9107, allocations: 142.4 MB / 0.955 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.004388/0.9151, allocations: 1.492 MB / 0.9565 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003271/0.9185, allocations: 0.988 MB / 0.9575 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002627/0.9188, allocations: 1.531 kB / 0.9575 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001197/0.92, allocations: 153.4 kB / 0.9576 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005432/0.9206, allocations: 103.6 kB / 0.9577 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000889/0.9215, allocations: 146.2 kB / 0.9578 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004199/0.9219, allocations: 169.1 kB / 0.958 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001924/0.9221, allocations: 32.02 kB / 0.958 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002347/0.9224, allocations: 62.11 kB / 0.9581 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002325/0.9226, allocations: 60.05 kB / 0.9581 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.851e-05/0.9227, allocations: 2.375 kB / 0.9582 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002512/0.923, allocations: 56.7 kB / 0.9582 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001201/0.9231, allocations: 39.28 kB / 0.9582 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001313/0.9233, allocations: 78.2 kB / 0.9583 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000422/0.9237, allocations: 191.6 kB / 0.9585 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.9237, allocations: 0 / 0.9585 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.746e-06/0.9237, allocations: 4 kB / 0.9585 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.392e-05/0.9238, allocations: 0 / 0.9585 GB, free: 5.094 MB / 0.7169 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.001141/0.9249, allocations: 475.2 kB / 0.959 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.684e-05/0.925, allocations: 9.625 kB / 0.959 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.9251, allocations: 20.94 kB / 0.959 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004813/0.9256, allocations: 239.1 kB / 0.9592 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.33e-05/0.9257, allocations: 3.125 kB / 0.9592 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.309e-05/0.9257, allocations: 6.875 kB / 0.9592 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003133/0.926, allocations: 96.06 kB / 0.9593 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.9261, allocations: 0 / 0.9593 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.072e-05/0.9261, allocations: 1.375 kB / 0.9593 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.121e-05/0.9261, allocations: 2.75 kB / 0.9593 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001638/0.9263, allocations: 35.22 kB / 0.9594 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007713/0.9271, allocations: 364.7 kB / 0.9597 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003125/0.9274, allocations: 74.28 kB / 0.9598 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000126/0.9276, allocations: 37.28 kB / 0.9598 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.052e-05/0.9276, allocations: 1.375 kB / 0.9598 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002592/0.9279, allocations: 89.31 kB / 0.9599 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 2.475e-06/0.9279, allocations: 0 / 0.9599 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0006062/0.9285, allocations: 140.4 kB / 0.96 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.164e-05/0.9286, allocations: 78.45 kB / 0.9601 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004651/0.9291, allocations: 263.4 kB / 0.9604 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.459e-05/0.9291, allocations: 27.02 kB / 0.9604 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.9293, allocations: 125 kB / 0.9605 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.183e-05/0.9293, allocations: 15.72 kB / 0.9605 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.545e-05/0.9294, allocations: 21.39 kB / 0.9605 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.449e-05/0.9295, allocations: 336.4 kB / 0.9609 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.9296, allocations: 26.58 kB / 0.9609 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.9298, allocations: 61.64 kB / 0.9609 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002316/0.93, allocations: 75.8 kB / 0.961 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.93, allocations: 1 kB / 0.961 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003764/0.9304, allocations: 122.5 kB / 0.9611 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.409e-05/0.9305, allocations: 7.5 kB / 0.9611 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.9305, allocations: 0 / 0.9611 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.9305, allocations: 1.031 kB / 0.9611 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.9307, allocations: 13.98 kB / 0.9611 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.9307, allocations: 0 / 0.9611 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.9308, allocations: 13.03 kB / 0.9612 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.865e-05/0.9308, allocations: 6.781 kB / 0.9612 GB, free: 2.672 MB / 0.7169 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.0001888/0.931, allocations: 147.5 kB / 0.9613 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.627e-05/0.9311, allocations: 19.05 kB / 0.9613 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.699e-05/0.9312, allocations: 19.88 kB / 0.9613 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-05/0.9312, allocations: 6.984 kB / 0.9614 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/0.9313, allocations: 4 kB / 0.9614 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.9313, allocations: 12.89 kB / 0.9614 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002785/0.9316, allocations: 218.1 kB / 0.9616 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.9316, allocations: 0.9688 kB / 0.9616 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.815e-05/0.9316, allocations: 2.844 kB / 0.9616 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.9317, allocations: 5.094 kB / 0.9616 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.738e-05/0.9317, allocations: 5.375 kB / 0.9616 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.9317, allocations: 0 / 0.9616 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.9317, allocations: 1.375 kB / 0.9616 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003735/0.9321, allocations: 150.5 kB / 0.9617 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.313e-05/0.9322, allocations: 100.9 kB / 0.9618 GB, free: 2.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.669e-05/0.9322, allocations: 5.359 kB / 0.9618 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.422e-05/0.9323, allocations: 8.125 kB / 0.9618 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.233e-05/0.9324, allocations: 2.75 kB / 0.9618 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.856e-05/0.9325, allocations: 10.67 kB / 0.9619 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003116/0.9328, allocations: 197.3 kB / 0.962 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of sort global known variables: time 4.51e-07/0.9328, allocations: 0 / 0.962 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004524/0.9333, allocations: 30.56 kB / 0.9621 GB, free: 1.871 MB / 0.7169 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.001883/0.9352, allocations: 427.2 kB / 0.9625 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003891/0.9356, allocations: 82.84 kB / 0.9626 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.9356, allocations: 0 / 0.9626 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001504/0.9358, allocations: 34.23 kB / 0.9626 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005352/0.9363, allocations: 33.16 kB / 0.9626 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00089/0.9372, allocations: 331.4 kB / 0.9629 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002112/0.9374, allocations: 0.7197 MB / 0.9636 GB, free: 0.6406 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001469/0.9376, allocations: 27.41 kB / 0.9637 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.563e-05/0.9377, allocations: 16.84 kB / 0.9637 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of SimCode: time 9.02e-07/0.9377, allocations: 0 / 0.9637 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of Templates: time 0.01037/0.9481, allocations: 2.159 MB / 0.9658 GB, free: 15.53 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_BooleanReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches