Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001709/0.001709, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.354/1.354, allocations: 222.9 MB / 240.2 MB, free: 4.426 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.308/2.308, allocations: 390.3 MB / 0.6647 GB, free: 440 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 59.91 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5795/0.5808, allocations: 140.4 MB / 0.9497 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator): time 0.001907/0.5827, allocations: 0.6165 MB / 0.9503 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001013/0.5837, allocations: 1.114 MB / 0.9514 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.294e-05/0.5838, allocations: 5.312 kB / 0.9514 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.37e-05/0.5839, allocations: 4 kB / 0.9514 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 1.906e-05/0.5839, allocations: 3.938 kB / 0.9514 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004124/0.5843, allocations: 128.3 kB / 0.9516 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001153/0.5845, allocations: 90.12 kB / 0.9516 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.352e-05/0.5845, allocations: 10.97 kB / 0.9517 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.634e-05/0.5846, allocations: 33.14 kB / 0.9517 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.434e-05/0.5847, allocations: 35.44 kB / 0.9517 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.2e-05/0.5847, allocations: 7.625 kB / 0.9517 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.645e-05/0.5848, allocations: 18.34 kB / 0.9517 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.516e-05/0.5848, allocations: 12.55 kB / 0.9518 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.121e-05/0.5849, allocations: 29.42 kB / 0.9518 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001302/0.585, allocations: 91.61 kB / 0.9519 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.585, allocations: 0 / 0.9519 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.243e-06/0.585, allocations: 4 kB / 0.9519 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.125e-06/0.585, allocations: 0 / 0.9519 GB, free: 7.426 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003631/0.5854, allocations: 378.7 kB / 0.9522 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.5855, allocations: 13.53 kB / 0.9522 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.012e-05/0.5855, allocations: 36.03 kB / 0.9523 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.651e-05/0.5855, allocations: 8.062 kB / 0.9523 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001222/0.5857, allocations: 178.8 kB / 0.9525 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.034e-05/0.5857, allocations: 3.031 kB / 0.9525 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.048e-05/0.5857, allocations: 5.625 kB / 0.9525 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.541e-05/0.5858, allocations: 51.41 kB / 0.9525 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.842e-06/0.5858, allocations: 7.875 kB / 0.9525 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.955e-06/0.5858, allocations: 1.469 kB / 0.9525 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.5858, allocations: 3.938 kB / 0.9525 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.888e-05/0.5859, allocations: 14.8 kB / 0.9525 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002598/0.5861, allocations: 299.6 kB / 0.9528 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.57e-05/0.5862, allocations: 30.45 kB / 0.9529 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.393e-05/0.5862, allocations: 5.953 kB / 0.9529 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.084e-06/0.5862, allocations: 1.188 kB / 0.9529 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001078/0.5863, allocations: 60.81 kB / 0.9529 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.263e-06/0.5863, allocations: 1.312 kB / 0.9529 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0001622/0.5865, allocations: 71.56 kB / 0.953 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.38e-05/0.5865, allocations: 51.41 kB / 0.953 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.745e-05/0.5866, allocations: 110.3 kB / 0.9531 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.5866, allocations: 30.98 kB / 0.9532 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.038e-05/0.5866, allocations: 88.23 kB / 0.9533 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 8.837e-06/0.5866, allocations: 5.094 kB / 0.9533 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.424e-05/0.5867, allocations: 30.02 kB / 0.9533 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.805e-05/0.5868, allocations: 324.5 kB / 0.9536 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.627e-05/0.5868, allocations: 26.36 kB / 0.9536 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.831e-05/0.5869, allocations: 51.72 kB / 0.9537 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.16e-05/0.587, allocations: 79.98 kB / 0.9538 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.587, allocations: 0 / 0.9538 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002053/0.5872, allocations: 143 kB / 0.9539 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/0.5872, allocations: 38.97 kB / 0.9539 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.5872, allocations: 320 / 0.9539 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.5873, allocations: 1.406 kB / 0.9539 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.313e-05/0.5873, allocations: 9 kB / 0.9539 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.5873, allocations: 1.469 kB / 0.9539 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002046/0.5875, allocations: 35.31 kB / 0.954 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.98e-05/0.5875, allocations: 5.062 kB / 0.954 GB, free: 5.277 MB / 0.7169 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 6.874e-05/0.5876, allocations: 122.8 kB / 0.9541 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.036e-05/0.5876, allocations: 6.531 kB / 0.9541 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.91e-05/0.5876, allocations: 3.906 kB / 0.9541 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.5876, allocations: 5.594 kB / 0.9541 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.5876, allocations: 0 / 0.9541 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.5877, allocations: 0 / 0.9541 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.758e-05/0.5877, allocations: 166 kB / 0.9543 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.5877, allocations: 0 / 0.9543 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.35e-06/0.5877, allocations: 5.219 kB / 0.9543 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.5878, allocations: 0 / 0.9543 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.693e-06/0.5878, allocations: 1.344 kB / 0.9543 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.5878, allocations: 0 / 0.9543 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.5878, allocations: 0 / 0.9543 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.241e-05/0.5878, allocations: 87.14 kB / 0.9544 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.431e-05/0.5879, allocations: 81.92 kB / 0.9544 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.271e-05/0.5879, allocations: 5.344 kB / 0.9544 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.32e-05/0.5879, allocations: 0 / 0.9544 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.247e-05/0.5879, allocations: 1.438 kB / 0.9544 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-06/0.5879, allocations: 1.688 kB / 0.9544 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.433e-05/0.588, allocations: 88.61 kB / 0.9545 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.588, allocations: 0 / 0.9545 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002055/0.5882, allocations: 22.41 kB / 0.9546 GB, free: 4.648 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: 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.0002348/0.5884, allocations: 0.6226 MB / 0.9552 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001694/0.5886, allocations: 123.2 kB / 0.9553 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.634e-06/0.5886, allocations: 0 / 0.9553 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.341e-05/0.5886, allocations: 8.031 kB / 0.9553 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001836/0.5888, allocations: 24.19 kB / 0.9553 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001015/0.5899, allocations: 1.36 MB / 0.9566 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001012/0.59, allocations: 0.6916 MB / 0.9573 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.895e-05/0.59, allocations: 6.531 kB / 0.9573 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.654e-05/0.59, allocations: 13.03 kB / 0.9573 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of SimCode: time 8.01e-07/0.59, allocations: 0 / 0.9573 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01736/0.6074, allocations: 1.963 MB / 0.9592 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.241/7.848, allocations: 9.344 kB / 0.9593 GB, free: 0.8594 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches