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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: 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_10_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_10_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.001575/0.001575, allocations: 104 kB / 16.35 MB, free: 5.824 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.001844/0.001845, allocations: 192.4 kB / 17.29 MB, free: 5.48 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 / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.479/2.479, allocations: 437.1 MB / 0.7112 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 61.03 kB / 0.8707 GB, free: 1.465 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2723, allocations: 151.6 MB / 1.019 GB, free: 9.879 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003218/0.2756, allocations: 1.789 MB / 1.021 GB, free: 8.074 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001544/0.2771, allocations: 1.026 MB / 1.022 GB, free: 7.039 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.36e-05/0.2772, allocations: 0 / 1.022 GB, free: 7.039 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0005751/0.2778, allocations: 168 kB / 1.022 GB, free: 6.875 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0002595/0.2781, allocations: 111.6 kB / 1.022 GB, free: 6.766 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003977/0.2785, allocations: 167.4 kB / 1.022 GB, free: 6.605 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002107/0.2787, allocations: 171.6 kB / 1.022 GB, free: 6.438 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.2788, allocations: 25.11 kB / 1.022 GB, free: 6.414 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 9.821e-05/0.2789, allocations: 71.75 kB / 1.022 GB, free: 6.344 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.279, allocations: 63.7 kB / 1.022 GB, free: 6.281 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.19e-05/0.2791, allocations: 8 kB / 1.022 GB, free: 6.273 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.2792, allocations: 67.94 kB / 1.022 GB, free: 6.207 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 6.642e-05/0.2793, allocations: 43.84 kB / 1.022 GB, free: 6.164 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 8.016e-05/0.2794, allocations: 63.59 kB / 1.022 GB, free: 6.102 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002452/0.2796, allocations: 195.3 kB / 1.023 GB, free: 5.91 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2796, allocations: 0 / 1.023 GB, free: 5.91 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.464e-06/0.2796, allocations: 7.938 kB / 1.023 GB, free: 5.902 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.589e-06/0.2796, allocations: 4 kB / 1.023 GB, free: 5.898 MB / 0.795 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.0006713/0.2803, allocations: 496.2 kB / 1.023 GB, free: 5.359 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.2804, allocations: 12.03 kB / 1.023 GB, free: 5.348 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.044e-05/0.2804, allocations: 16.75 kB / 1.023 GB, free: 5.332 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003137/0.2807, allocations: 244.8 kB / 1.023 GB, free: 5.051 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.938e-05/0.2808, allocations: 8.359 kB / 1.023 GB, free: 5.043 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.593e-05/0.2808, allocations: 8.125 kB / 1.023 GB, free: 5.035 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002025/0.281, allocations: 87.39 kB / 1.023 GB, free: 4.938 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.281, allocations: 0 / 1.023 GB, free: 4.938 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.281, allocations: 3.984 kB / 1.023 GB, free: 4.934 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.141e-05/0.2811, allocations: 4 kB / 1.023 GB, free: 4.93 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.835e-05/0.2812, allocations: 39.92 kB / 1.024 GB, free: 4.891 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004742/0.2816, allocations: 344.7 kB / 1.024 GB, free: 4.504 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001889/0.2819, allocations: 82.61 kB / 1.024 GB, free: 4.414 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.627e-05/0.2819, allocations: 32.84 kB / 1.024 GB, free: 4.379 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.069e-05/0.282, allocations: 4 kB / 1.024 GB, free: 4.375 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001477/0.2821, allocations: 83.38 kB / 1.024 GB, free: 4.281 MB / 0.795 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.2821, allocations: 0 / 1.024 GB, free: 4.281 MB / 0.795 GB Notification: Performance of matching and sorting (n=10): time 0.0003179/0.2824, allocations: 145.4 kB / 1.024 GB, free: 4.133 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/0.2825, allocations: 77.11 kB / 1.024 GB, free: 4.039 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002582/0.2828, allocations: 267 kB / 1.025 GB, free: 3.77 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.2828, allocations: 25.7 kB / 1.025 GB, free: 3.738 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.924e-05/0.2829, allocations: 123.9 kB / 1.025 GB, free: 3.613 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.889e-05/0.2829, allocations: 23.73 kB / 1.025 GB, free: 3.59 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.456e-05/0.283, allocations: 25.7 kB / 1.025 GB, free: 3.559 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001287/0.2831, allocations: 334.8 kB / 1.025 GB, free: 3.223 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.472e-05/0.2832, allocations: 32.31 kB / 1.025 GB, free: 3.191 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.647e-05/0.2833, allocations: 71.28 kB / 1.025 GB, free: 3.109 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001277/0.2834, allocations: 65.7 kB / 1.025 GB, free: 3.039 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.2834, allocations: 4 kB / 1.025 GB, free: 3.035 MB / 0.795 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000193/0.2836, allocations: 113.4 kB / 1.025 GB, free: 2.918 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.2836, allocations: 8.062 kB / 1.025 GB, free: 2.91 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.2836, allocations: 0 / 1.025 GB, free: 2.91 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.2836, allocations: 4 kB / 1.025 GB, free: 2.906 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.392e-05/0.2837, allocations: 11.94 kB / 1.025 GB, free: 2.895 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.2837, allocations: 0 / 1.025 GB, free: 2.895 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.459e-05/0.2838, allocations: 15.83 kB / 1.025 GB, free: 2.879 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.686e-06/0.2838, allocations: 4 kB / 1.025 GB, free: 2.875 MB / 0.795 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.0001314/0.284, allocations: 138.5 kB / 1.025 GB, free: 2.73 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.619e-05/0.284, allocations: 19.81 kB / 1.025 GB, free: 2.711 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.183e-05/0.2841, allocations: 21.39 kB / 1.025 GB, free: 2.695 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.2841, allocations: 0 / 1.025 GB, free: 2.695 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.2841, allocations: 4 kB / 1.026 GB, free: 2.691 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.2841, allocations: 3.938 kB / 1.026 GB, free: 2.688 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000199/0.2843, allocations: 225.5 kB / 1.026 GB, free: 2.418 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.2843, allocations: 0 / 1.026 GB, free: 2.418 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.12e-05/0.2843, allocations: 4 kB / 1.026 GB, free: 2.414 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.2843, allocations: 0 / 1.026 GB, free: 2.414 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.2844, allocations: 3.984 kB / 1.026 GB, free: 2.41 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.2844, allocations: 8.156 kB / 1.026 GB, free: 2.402 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2844, allocations: 3.938 kB / 1.026 GB, free: 2.398 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002283/0.2846, allocations: 148.9 kB / 1.026 GB, free: 2.234 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 7.096e-05/0.2847, allocations: 92.91 kB / 1.026 GB, free: 2.125 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.859e-05/0.2847, allocations: 4 kB / 1.026 GB, free: 2.121 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.904e-05/0.2848, allocations: 4 kB / 1.026 GB, free: 2.117 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.763e-05/0.2848, allocations: 15.97 kB / 1.026 GB, free: 2.102 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.2848, allocations: 15.88 kB / 1.026 GB, free: 2.086 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001762/0.285, allocations: 188.6 kB / 1.026 GB, free: 1.902 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.7e-07/0.285, allocations: 3.938 kB / 1.026 GB, free: 1.898 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002349/0.2853, allocations: 39.89 kB / 1.026 GB, free: 1.859 MB / 0.795 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.0009235/0.2862, allocations: 414 kB / 1.027 GB, free: 1.602 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002026/0.2864, allocations: 71.91 kB / 1.027 GB, free: 1.531 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.2864, allocations: 4.062 kB / 1.027 GB, free: 1.527 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 7.881e-05/0.2865, allocations: 35.98 kB / 1.027 GB, free: 1.492 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/0.2868, allocations: 50.44 kB / 1.027 GB, free: 1.449 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005011/0.2873, allocations: 291.1 kB / 1.027 GB, free: 1.137 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.2876, allocations: 0.7201 MB / 1.028 GB, free: 400 kB / 0.795 GB Notification: Performance of simCode: alias equations: time 6.603e-05/0.2877, allocations: 29.72 kB / 1.028 GB, free: 372 kB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.637e-05/0.2877, allocations: 15.44 kB / 1.028 GB, free: 356 kB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/0.2877, allocations: 0 / 1.028 GB, free: 356 kB / 0.795 GB Notification: Performance of Templates: time 0.005271/0.293, allocations: 2.275 MB / 1.03 GB, free: 14.1 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.BooleanReplicator.makefile (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 & ./Buildings_10_Buildings.Utilities.Math.Examples.BooleanReplicator -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > 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) Reference file matches