Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booRep.u|booRep.y.1.|booRep.y.2.|booRep.y.3.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator") translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booRep.u|booRep.y.1.|booRep.y.2.|booRep.y.3.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 104.4 kB / 15.98 MB, free: 6.359 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.001162/0.001162, allocations: 199.3 kB / 16.91 MB, free: 6.191 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.48/1.48, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.693/2.693, allocations: 469.4 MB / 0.7423 GB, free: 3.824 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 68.52 kB / 0.9083 GB, free: 14.48 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3165, allocations: 159.1 MB / 1.064 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator): time 0.002321/0.3189, allocations: 0.6727 MB / 1.064 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001701/0.3206, allocations: 1.116 MB / 1.065 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.462e-05/0.3207, allocations: 0 / 1.065 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001134/0.3208, allocations: 3.938 kB / 1.065 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 2.892e-05/0.3209, allocations: 3.984 kB / 1.065 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005538/0.3214, allocations: 115.1 kB / 1.066 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.000159/0.3216, allocations: 95.81 kB / 1.066 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 9.571e-05/0.3217, allocations: 11.98 kB / 1.066 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 6.932e-05/0.3218, allocations: 31.97 kB / 1.066 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 9.947e-05/0.3219, allocations: 31.89 kB / 1.066 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.26e-05/0.3219, allocations: 8 kB / 1.066 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001428/0.3221, allocations: 27.92 kB / 1.066 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 6.065e-05/0.3221, allocations: 8 kB / 1.066 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 8.519e-05/0.3222, allocations: 39.84 kB / 1.066 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001382/0.3224, allocations: 63.88 kB / 1.066 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.3224, allocations: 0 / 1.066 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.054e-06/0.3224, allocations: 0 / 1.066 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.3224, allocations: 0 / 1.066 GB, free: 13.14 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0006405/0.323, allocations: 386.9 kB / 1.066 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.3231, allocations: 8.625 kB / 1.066 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.808e-05/0.3232, allocations: 4.938 kB / 1.066 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002164/0.3234, allocations: 176.4 kB / 1.066 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.3234, allocations: 4.359 kB / 1.066 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.616e-05/0.3234, allocations: 12.38 kB / 1.066 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001205/0.3236, allocations: 50.25 kB / 1.067 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.3236, allocations: 192 / 1.067 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.3236, allocations: 3.938 kB / 1.067 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.3236, allocations: 0 / 1.067 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.877e-05/0.3237, allocations: 15.94 kB / 1.067 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004159/0.3241, allocations: 308.7 kB / 1.067 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 5.235e-05/0.3241, allocations: 26.58 kB / 1.067 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.935e-05/0.3242, allocations: 12.86 kB / 1.067 GB, free: 12 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 7.955e-06/0.3242, allocations: 0 / 1.067 GB, free: 12 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001732/0.3244, allocations: 59.39 kB / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 1.233e-06/0.3244, allocations: 0 / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.0002012/0.3246, allocations: 61.59 kB / 1.067 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.3246, allocations: 63.28 kB / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.557e-05/0.3247, allocations: 105.8 kB / 1.067 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.714e-05/0.3248, allocations: 29.7 kB / 1.067 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.959e-05/0.3248, allocations: 92.12 kB / 1.067 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.126e-05/0.3248, allocations: 11.83 kB / 1.067 GB, free: 11.53 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.328e-05/0.3249, allocations: 29.7 kB / 1.067 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.325, allocations: 318.8 kB / 1.068 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.46e-05/0.3251, allocations: 27.98 kB / 1.068 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.834e-05/0.3252, allocations: 54.55 kB / 1.068 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001063/0.3253, allocations: 76.22 kB / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3254, allocations: 0 / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002462/0.3256, allocations: 151.2 kB / 1.068 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.002e-05/0.3257, allocations: 33.7 kB / 1.068 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-06/0.3257, allocations: 4.094 kB / 1.068 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.3257, allocations: 0 / 1.068 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.77e-05/0.3257, allocations: 4 kB / 1.068 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.3257, allocations: 0 / 1.068 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002207/0.3259, allocations: 31.95 kB / 1.068 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.997e-05/0.326, allocations: 4 kB / 1.068 GB, free: 10.75 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (booPul.y,$PRE.booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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.0001053/0.3261, allocations: 117.8 kB / 1.068 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.034e-05/0.3261, allocations: 0 / 1.068 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.333e-05/0.3261, allocations: 15.89 kB / 1.068 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.3261, allocations: 4.234 kB / 1.068 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3262, allocations: 0 / 1.068 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.788e-06/0.3262, allocations: 3.984 kB / 1.068 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000138/0.3263, allocations: 161.9 kB / 1.068 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3263, allocations: 0 / 1.068 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.529e-05/0.3263, allocations: 4 kB / 1.068 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.3263, allocations: 7.922 kB / 1.068 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.304e-06/0.3264, allocations: 0 / 1.068 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3264, allocations: 0 / 1.068 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3264, allocations: 4 kB / 1.068 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001043/0.3265, allocations: 84.97 kB / 1.068 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001127/0.3266, allocations: 77.11 kB / 1.068 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.268e-05/0.3266, allocations: 0 / 1.068 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.766e-05/0.3266, allocations: 8 kB / 1.068 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.786e-05/0.3267, allocations: 3.984 kB / 1.068 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-06/0.3267, allocations: 0 / 1.068 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 3.966e-05/0.3267, allocations: 79.28 kB / 1.069 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.352e-06/0.3267, allocations: 8 kB / 1.069 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002104/0.3269, allocations: 19.94 kB / 1.069 GB, free: 10.07 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000158/0.3271, allocations: 107.2 kB / 1.069 GB, free: 9.953 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002162/0.3273, allocations: 127.2 kB / 1.069 GB, free: 9.816 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3273, allocations: 0 / 1.069 GB, free: 9.816 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 3.435e-05/0.3274, allocations: 12 kB / 1.069 GB, free: 9.805 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002009/0.3276, allocations: 16.17 kB / 1.069 GB, free: 9.789 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003265/0.3279, allocations: 162.3 kB / 1.069 GB, free: 9.602 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002779/0.3282, allocations: 0.6846 MB / 1.07 GB, free: 8.891 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.744e-05/0.3282, allocations: 7.438 kB / 1.07 GB, free: 8.883 MB / 0.8419 GB Notification: Performance of SimCode: time 2.3e-07/0.3282, allocations: 0 / 1.07 GB, free: 8.883 MB / 0.8419 GB Notification: Performance of Templates: time 0.002816/0.3311, allocations: 0.9192 MB / 1.071 GB, free: 7.977 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches