Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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.Logical.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",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.001502/0.001502, allocations: 104 kB / 15.6 MB, free: 148 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.002076/0.002076, allocations: 196.1 kB / 16.53 MB, free: 6.617 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.445/1.445, allocations: 222.9 MB / 240.2 MB, free: 4.199 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.447/2.447, allocations: 390.3 MB / 0.6647 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 63.91 kB / 0.8127 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6469/0.6483, allocations: 140.4 MB / 0.9497 GB, free: 9.039 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001736/0.6501, allocations: 0.6975 MB / 0.9504 GB, free: 8.5 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001245/0.6513, allocations: 1.262 MB / 0.9517 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.023e-05/0.6514, allocations: 1.688 kB / 0.9517 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.86e-05/0.6514, allocations: 11.92 kB / 0.9517 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.581e-05/0.6515, allocations: 13.3 kB / 0.9517 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007657/0.6523, allocations: 304.2 kB / 0.952 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002697/0.6526, allocations: 279.2 kB / 0.9522 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.6527, allocations: 15.23 kB / 0.9523 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/0.6528, allocations: 95.33 kB / 0.9523 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001254/0.653, allocations: 79.7 kB / 0.9524 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.044e-05/0.653, allocations: 26.31 kB / 0.9524 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.6531, allocations: 40.58 kB / 0.9525 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.427e-05/0.6532, allocations: 17.48 kB / 0.9525 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.00011/0.6533, allocations: 82.67 kB / 0.9526 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002472/0.6535, allocations: 215.8 kB / 0.9528 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.6535, allocations: 0 / 0.9528 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.094e-06/0.6535, allocations: 0 / 0.9528 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.6536, allocations: 4.938 kB / 0.9528 GB, free: 6.742 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005354/0.6541, allocations: 493.2 kB / 0.9533 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.6542, allocations: 9.656 kB / 0.9533 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.934e-05/0.6542, allocations: 44.33 kB / 0.9533 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.65e-05/0.6543, allocations: 11.28 kB / 0.9533 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.462e-05/0.6544, allocations: 176.4 kB / 0.9535 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.943e-05/0.6544, allocations: 7 kB / 0.9535 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.533e-05/0.6544, allocations: 18.16 kB / 0.9535 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001262/0.6546, allocations: 58.84 kB / 0.9536 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.6546, allocations: 0 / 0.9536 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.6546, allocations: 5.531 kB / 0.9536 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.6546, allocations: 0 / 0.9536 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.24e-05/0.6547, allocations: 22.83 kB / 0.9536 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004505/0.6551, allocations: 414.4 kB / 0.954 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.124e-05/0.6552, allocations: 31.72 kB / 0.954 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.468e-05/0.6553, allocations: 21.23 kB / 0.954 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.528e-06/0.6553, allocations: 0 / 0.954 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000177/0.6555, allocations: 106.3 kB / 0.9541 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.6555, allocations: 0 / 0.9541 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0002791/0.6557, allocations: 137.1 kB / 0.9543 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.839e-05/0.6558, allocations: 54.09 kB / 0.9543 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.085e-05/0.6559, allocations: 139.4 kB / 0.9545 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.282e-05/0.6559, allocations: 36.05 kB / 0.9545 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.758e-05/0.656, allocations: 103.2 kB / 0.9546 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.931e-05/0.656, allocations: 15.34 kB / 0.9546 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000118/0.6561, allocations: 70.55 kB / 0.9547 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.374e-05/0.6562, allocations: 329 kB / 0.955 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000174/0.6564, allocations: 90.12 kB / 0.9551 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000187/0.6565, allocations: 133 kB / 0.9552 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002275/0.6568, allocations: 238.9 kB / 0.9554 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.6568, allocations: 0 / 0.9554 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005116/0.6573, allocations: 385.9 kB / 0.9558 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.992e-05/0.6574, allocations: 101 kB / 0.9559 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.6574, allocations: 2.5 kB / 0.9559 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.6574, allocations: 2 kB / 0.9559 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.385e-05/0.6574, allocations: 3.25 kB / 0.9559 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.6574, allocations: 1.938 kB / 0.9559 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005155/0.658, allocations: 92.2 kB / 0.956 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.072e-05/0.658, allocations: 25.41 kB / 0.956 GB, free: 3.828 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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 8.793e-05/0.6581, allocations: 131.4 kB / 0.9561 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.639e-05/0.6581, allocations: 8.688 kB / 0.9561 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.778e-05/0.6582, allocations: 13.48 kB / 0.9562 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.6582, allocations: 1.281 kB / 0.9562 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.6582, allocations: 0 / 0.9562 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.6582, allocations: 5.25 kB / 0.9562 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.965e-05/0.6583, allocations: 189.9 kB / 0.9563 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.6583, allocations: 0 / 0.9563 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.234e-05/0.6583, allocations: 10.2 kB / 0.9564 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.6583, allocations: 0 / 0.9564 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.919e-06/0.6583, allocations: 2.344 kB / 0.9564 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.6583, allocations: 0 / 0.9564 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.6583, allocations: 5.062 kB / 0.9564 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001492/0.6585, allocations: 145 kB / 0.9565 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.078e-05/0.6585, allocations: 83.33 kB / 0.9566 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.755e-05/0.6585, allocations: 5.344 kB / 0.9566 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.281e-05/0.6586, allocations: 5.188 kB / 0.9566 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.475e-05/0.6586, allocations: 7.859 kB / 0.9566 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.6586, allocations: 12 kB / 0.9566 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.846e-05/0.6587, allocations: 96.92 kB / 0.9567 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.6587, allocations: 0 / 0.9567 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002595/0.6589, allocations: 46.77 kB / 0.9567 GB, free: 3.137 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003738/0.6593, allocations: 0.6805 MB / 0.9574 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004062/0.6597, allocations: 364.8 kB / 0.9578 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.6597, allocations: 0 / 0.9578 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.147e-05/0.6598, allocations: 40.02 kB / 0.9578 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002696/0.6601, allocations: 23.61 kB / 0.9578 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001962/0.6621, allocations: 2.055 MB / 0.9598 GB, free: 464 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001824/0.6623, allocations: 0.7036 MB / 0.9605 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.287e-05/0.6623, allocations: 6.531 kB / 0.9605 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.932e-05/0.6623, allocations: 28.95 kB / 0.9605 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of SimCode: time 3.7e-07/0.6624, allocations: 3.938 kB / 0.9606 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02099/0.6833, allocations: 3.775 MB / 0.9642 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.59/8.273, allocations: 19.23 kB / 0.9643 GB, free: 13.72 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches