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.001759/0.001759, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002064/0.002065, allocations: 195.9 kB / 16.26 MB, free: 6.629 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.541/1.541, allocations: 222.9 MB / 239.9 MB, free: 4.48 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.457/2.457, allocations: 390.2 MB / 0.6643 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 67.89 kB / 0.812 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8959/0.8972, allocations: 140.4 MB / 0.9491 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.004335/0.9016, allocations: 1.838 MB / 0.9509 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002492/0.9041, allocations: 1.006 MB / 0.9519 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.9043, allocations: 1.875 kB / 0.9519 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0008244/0.9052, allocations: 161.3 kB / 0.952 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004252/0.9056, allocations: 100.7 kB / 0.9521 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000691/0.9063, allocations: 155.9 kB / 0.9523 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002934/0.9067, allocations: 165.6 kB / 0.9524 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.9068, allocations: 32.14 kB / 0.9524 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001487/0.907, allocations: 77.3 kB / 0.9525 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001477/0.9071, allocations: 66.59 kB / 0.9526 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.224e-05/0.9072, allocations: 7.781 kB / 0.9526 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001941/0.9074, allocations: 63.08 kB / 0.9527 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.835e-05/0.9075, allocations: 47.97 kB / 0.9527 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.307e-05/0.9076, allocations: 60.2 kB / 0.9528 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003741/0.908, allocations: 191.8 kB / 0.9529 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.908, allocations: 4 kB / 0.9529 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.573e-06/0.908, allocations: 0 / 0.9529 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.374e-06/0.908, allocations: 1.312 kB / 0.9529 GB, free: 6.215 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.0008953/0.9089, allocations: 494.6 kB / 0.9534 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.909, allocations: 9.156 kB / 0.9534 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.104e-05/0.9091, allocations: 16.44 kB / 0.9534 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003441/0.9095, allocations: 251.7 kB / 0.9537 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/0.9095, allocations: 2.531 kB / 0.9537 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.053e-05/0.9095, allocations: 12 kB / 0.9537 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002526/0.9098, allocations: 87.75 kB / 0.9538 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.9098, allocations: 0 / 0.9538 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.9098, allocations: 9.359 kB / 0.9538 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.368e-05/0.9099, allocations: 2.406 kB / 0.9538 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001361/0.91, allocations: 35.39 kB / 0.9538 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006137/0.9106, allocations: 355.2 kB / 0.9542 GB, free: 5 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002755/0.9109, allocations: 79.2 kB / 0.9542 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.911, allocations: 32.81 kB / 0.9543 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.256e-05/0.9111, allocations: 1.219 kB / 0.9543 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002298/0.9113, allocations: 88.25 kB / 0.9544 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.944e-06/0.9113, allocations: 5.094 kB / 0.9544 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0005491/0.9119, allocations: 140 kB / 0.9545 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.009e-05/0.912, allocations: 82.31 kB / 0.9546 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003804/0.9124, allocations: 264.9 kB / 0.9548 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.902e-05/0.9124, allocations: 26.98 kB / 0.9548 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.045e-05/0.9125, allocations: 116 kB / 0.955 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.781e-05/0.9125, allocations: 19.38 kB / 0.955 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.65e-05/0.9126, allocations: 31.33 kB / 0.955 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.789e-05/0.9127, allocations: 331.3 kB / 0.9553 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.9128, allocations: 31.27 kB / 0.9554 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.913, allocations: 61.06 kB / 0.9554 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002178/0.9132, allocations: 68.08 kB / 0.9555 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.9132, allocations: 4.969 kB / 0.9555 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003188/0.9136, allocations: 118.6 kB / 0.9556 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.868e-05/0.9136, allocations: 8.438 kB / 0.9556 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.9136, allocations: 0 / 0.9556 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.9137, allocations: 1.125 kB / 0.9556 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.9138, allocations: 17.89 kB / 0.9556 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.974e-06/0.9138, allocations: 0 / 0.9556 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.551e-05/0.9139, allocations: 20.03 kB / 0.9556 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.9139, allocations: 2.344 kB / 0.9556 GB, free: 3.773 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.0001543/0.9141, allocations: 151.9 kB / 0.9558 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.07e-05/0.9142, allocations: 14.81 kB / 0.9558 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.114e-05/0.9142, allocations: 20.25 kB / 0.9558 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.571e-05/0.9143, allocations: 6.375 kB / 0.9558 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.9143, allocations: 1.062 kB / 0.9558 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.9143, allocations: 3.938 kB / 0.9558 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002329/0.9145, allocations: 218.5 kB / 0.956 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.9145, allocations: 1.188 kB / 0.956 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.325e-05/0.9146, allocations: 3.594 kB / 0.956 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.9146, allocations: 7.984 kB / 0.9561 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.9146, allocations: 5.156 kB / 0.9561 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.9146, allocations: 1.188 kB / 0.9561 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.9146, allocations: 0 / 0.9561 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003163/0.915, allocations: 147.1 kB / 0.9562 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.515e-05/0.915, allocations: 97.25 kB / 0.9563 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.21e-05/0.9151, allocations: 1.25 kB / 0.9563 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.379e-05/0.9152, allocations: 5.938 kB / 0.9563 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.204e-05/0.9153, allocations: 11.27 kB / 0.9563 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.9153, allocations: 10.41 kB / 0.9563 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002345/0.9155, allocations: 195.1 kB / 0.9565 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of sort global known variables: time 3.21e-07/0.9155, allocations: 0 / 0.9565 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004121/0.916, allocations: 33.73 kB / 0.9565 GB, free: 2.984 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.001319/0.9173, allocations: 424 kB / 0.9569 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003576/0.9177, allocations: 85.78 kB / 0.957 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.9177, allocations: 0 / 0.957 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001384/0.9178, allocations: 37.8 kB / 0.9571 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004806/0.9183, allocations: 37.02 kB / 0.9571 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008553/0.9192, allocations: 329.2 kB / 0.9574 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002904/0.9195, allocations: 0.7301 MB / 0.9581 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001307/0.9197, allocations: 22.55 kB / 0.9581 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.833e-05/0.9197, allocations: 16.91 kB / 0.9582 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of SimCode: time 5.51e-07/0.9198, allocations: 0 / 0.9582 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of Templates: time 0.00965/0.9294, allocations: 2.251 MB / 0.9604 GB, free: 0.5898 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