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.001642/0.001643, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001783/0.001783, allocations: 193.2 kB / 16.14 MB, free: 6.645 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.452/1.452, allocations: 222.9 MB / 239.8 MB, free: 4.516 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.466/2.466, allocations: 390.2 MB / 0.6642 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 59.91 kB / 0.8118 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9136/0.915, allocations: 140.4 MB / 0.9489 GB, free: 9.359 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003776/0.9188, allocations: 1.831 MB / 0.9507 GB, free: 7.922 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001499/0.9203, allocations: 1.012 MB / 0.9517 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.408e-05/0.9204, allocations: 1.219 kB / 0.9517 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0006147/0.9211, allocations: 154.5 kB / 0.9518 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002265/0.9213, allocations: 102.7 kB / 0.9519 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000384/0.9217, allocations: 151.3 kB / 0.9521 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000199/0.9219, allocations: 167.5 kB / 0.9522 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.922, allocations: 28.5 kB / 0.9523 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.728e-05/0.9221, allocations: 66.16 kB / 0.9523 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.9223, allocations: 65.23 kB / 0.9524 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.339e-05/0.9223, allocations: 3.188 kB / 0.9524 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00015/0.9224, allocations: 61.17 kB / 0.9525 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.43e-05/0.9225, allocations: 35.44 kB / 0.9525 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.96e-05/0.9226, allocations: 53.58 kB / 0.9525 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002753/0.9229, allocations: 194.1 kB / 0.9527 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.9229, allocations: 4 kB / 0.9527 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.352e-06/0.9229, allocations: 0 / 0.9527 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.041e-05/0.9229, allocations: 0 / 0.9527 GB, free: 6.488 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.0007338/0.9237, allocations: 499.4 kB / 0.9532 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.9237, allocations: 10.16 kB / 0.9532 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.407e-05/0.9238, allocations: 16.06 kB / 0.9532 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/0.9241, allocations: 248.3 kB / 0.9535 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.9241, allocations: 1.969 kB / 0.9535 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/0.9241, allocations: 7.406 kB / 0.9535 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001864/0.9243, allocations: 87.61 kB / 0.9536 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.9243, allocations: 3.984 kB / 0.9536 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.9243, allocations: 4.781 kB / 0.9536 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.921e-05/0.9244, allocations: 3.031 kB / 0.9536 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.864e-05/0.9245, allocations: 32.02 kB / 0.9536 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004582/0.9249, allocations: 367.1 kB / 0.954 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001857/0.9251, allocations: 66.78 kB / 0.954 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.187e-05/0.9252, allocations: 40.78 kB / 0.9541 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.9252, allocations: 1.188 kB / 0.9541 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001681/0.9254, allocations: 89.28 kB / 0.9541 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.9254, allocations: 0 / 0.9541 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0003367/0.9258, allocations: 140.5 kB / 0.9543 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.219e-05/0.9258, allocations: 82.11 kB / 0.9544 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002461/0.9261, allocations: 272.6 kB / 0.9546 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.9261, allocations: 26.86 kB / 0.9546 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.05e-05/0.9262, allocations: 115.8 kB / 0.9548 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.503e-05/0.9262, allocations: 24.64 kB / 0.9548 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.971e-05/0.9262, allocations: 26.7 kB / 0.9548 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.393e-05/0.9263, allocations: 332.3 kB / 0.9551 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.46e-05/0.9264, allocations: 26.52 kB / 0.9551 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.532e-05/0.9265, allocations: 65.47 kB / 0.9552 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001219/0.9266, allocations: 71.73 kB / 0.9553 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.9266, allocations: 0 / 0.9553 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001876/0.9268, allocations: 115.8 kB / 0.9554 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.9268, allocations: 7.188 kB / 0.9554 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.9268, allocations: 1.344 kB / 0.9554 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.9268, allocations: 4.062 kB / 0.9554 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.594e-05/0.9269, allocations: 9.969 kB / 0.9554 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.9269, allocations: 0 / 0.9554 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.319e-05/0.927, allocations: 19.95 kB / 0.9554 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.927, allocations: 2.781 kB / 0.9554 GB, free: 4.051 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.0001013/0.9271, allocations: 151.8 kB / 0.9556 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.826e-05/0.9272, allocations: 14.19 kB / 0.9556 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.579e-05/0.9272, allocations: 19.67 kB / 0.9556 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.9272, allocations: 6.953 kB / 0.9556 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.9272, allocations: 5.25 kB / 0.9556 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.9273, allocations: 3.938 kB / 0.9556 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000153/0.9274, allocations: 221.7 kB / 0.9558 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.9274, allocations: 3.938 kB / 0.9558 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.863e-05/0.9274, allocations: 1.562 kB / 0.9558 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.9275, allocations: 0 / 0.9558 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.9275, allocations: 11.53 kB / 0.9558 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.9275, allocations: 0 / 0.9558 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.9275, allocations: 0 / 0.9558 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001885/0.9277, allocations: 145.3 kB / 0.956 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.638e-05/0.9277, allocations: 102 kB / 0.9561 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.778e-05/0.9277, allocations: 1.156 kB / 0.9561 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.771e-05/0.9278, allocations: 2.875 kB / 0.9561 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.587e-05/0.9279, allocations: 5.984 kB / 0.9561 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/0.9279, allocations: 7.031 kB / 0.9561 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001685/0.928, allocations: 197.1 kB / 0.9563 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.928, allocations: 5.031 kB / 0.9563 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002438/0.9283, allocations: 33.92 kB / 0.9563 GB, free: 3.258 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.0009525/0.9293, allocations: 425 kB / 0.9567 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001955/0.9295, allocations: 74.62 kB / 0.9568 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.9295, allocations: 1.156 kB / 0.9568 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.041e-05/0.9296, allocations: 37.3 kB / 0.9568 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.9299, allocations: 41.95 kB / 0.9569 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005222/0.9304, allocations: 327.6 kB / 0.9572 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000146/0.9305, allocations: 0.7224 MB / 0.9579 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.888e-05/0.9306, allocations: 22.44 kB / 0.9579 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.969e-05/0.9307, allocations: 20.41 kB / 0.9579 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.9307, allocations: 4 kB / 0.9579 GB, free: 2 MB / 0.7169 GB Notification: Performance of Templates: time 0.004871/0.9355, allocations: 2.189 MB / 0.9601 GB, free: 0.8984 MB / 0.7169 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