Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController",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.006052/0.006052, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001175/0.001175, allocations: 202.3 kB / 16.68 MB, free: 5.969 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.44/1.44, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.784/2.784, allocations: 437.1 MB / 0.7105 GB, free: 5.027 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 59.91 kB / 1.018 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.3481, allocations: 151.6 MB / 1.166 GB, free: 7.285 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController): time 0.002159/0.3503, allocations: 0.7102 MB / 1.167 GB, free: 6.57 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.00117/0.3515, allocations: 0.8432 MB / 1.168 GB, free: 5.715 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.634e-05/0.3515, allocations: 0 / 1.168 GB, free: 5.715 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.609e-05/0.3516, allocations: 3.938 kB / 1.168 GB, free: 5.711 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001015/0.3517, allocations: 7.922 kB / 1.168 GB, free: 5.703 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001997/0.3519, allocations: 19.97 kB / 1.168 GB, free: 5.684 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001039/0.352, allocations: 39.92 kB / 1.168 GB, free: 5.645 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.3522, allocations: 15.98 kB / 1.168 GB, free: 5.629 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.583e-05/0.3523, allocations: 19.92 kB / 1.168 GB, free: 5.609 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.257e-05/0.3523, allocations: 27.91 kB / 1.168 GB, free: 5.582 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.111e-05/0.3524, allocations: 4 kB / 1.168 GB, free: 5.578 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.375e-05/0.3524, allocations: 4 kB / 1.168 GB, free: 5.574 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.67e-05/0.3524, allocations: 11.92 kB / 1.168 GB, free: 5.562 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.119e-05/0.3525, allocations: 11.94 kB / 1.168 GB, free: 5.551 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001376/0.3526, allocations: 55.94 kB / 1.168 GB, free: 5.496 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 8.656e-06/0.3526, allocations: 7.984 kB / 1.168 GB, free: 5.488 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.244e-06/0.3526, allocations: 4 kB / 1.168 GB, free: 5.484 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.703e-06/0.3526, allocations: 0 / 1.168 GB, free: 5.484 MB / 0.92 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.0007698/0.3534, allocations: 379.3 kB / 1.168 GB, free: 5.062 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.3535, allocations: 8.031 kB / 1.168 GB, free: 5.055 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.023e-05/0.3535, allocations: 42.69 kB / 1.168 GB, free: 5.004 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.231e-05/0.3536, allocations: 0.9375 kB / 1.168 GB, free: 5.004 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001243/0.3537, allocations: 176.3 kB / 1.169 GB, free: 4.793 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.3537, allocations: 384 / 1.169 GB, free: 4.793 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.482e-05/0.3538, allocations: 4.375 kB / 1.169 GB, free: 4.789 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002367/0.354, allocations: 62.22 kB / 1.169 GB, free: 4.723 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.354, allocations: 3.938 kB / 1.169 GB, free: 4.719 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.354, allocations: 4 kB / 1.169 GB, free: 4.715 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.3541, allocations: 7.938 kB / 1.169 GB, free: 4.707 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001909/0.3542, allocations: 43.95 kB / 1.169 GB, free: 4.664 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005867/0.3548, allocations: 296.8 kB / 1.169 GB, free: 4.324 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002858/0.3551, allocations: 54.48 kB / 1.169 GB, free: 4.262 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.509e-05/0.3552, allocations: 29 kB / 1.169 GB, free: 4.23 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.553e-05/0.3553, allocations: 3.984 kB / 1.169 GB, free: 4.227 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.3553, allocations: 30.56 kB / 1.169 GB, free: 4.188 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.433e-06/0.3553, allocations: 0 / 1.169 GB, free: 4.188 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0003744/0.3557, allocations: 89.62 kB / 1.169 GB, free: 4.094 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/0.3558, allocations: 59.41 kB / 1.169 GB, free: 4.023 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.82e-05/0.3559, allocations: 121.7 kB / 1.169 GB, free: 3.895 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.492e-05/0.356, allocations: 25.7 kB / 1.169 GB, free: 3.863 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.779e-05/0.356, allocations: 84.14 kB / 1.169 GB, free: 3.777 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.698e-05/0.3561, allocations: 19.94 kB / 1.169 GB, free: 3.758 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.958e-05/0.3561, allocations: 13.72 kB / 1.169 GB, free: 3.738 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001606/0.3563, allocations: 322.8 kB / 1.17 GB, free: 3.414 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.972e-05/0.3564, allocations: 27.97 kB / 1.17 GB, free: 3.387 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.988e-05/0.3565, allocations: 19.98 kB / 1.17 GB, free: 3.367 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000166/0.3566, allocations: 40.81 kB / 1.17 GB, free: 3.324 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3566, allocations: 0 / 1.17 GB, free: 3.324 MB / 0.92 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002249/0.3569, allocations: 77.61 kB / 1.17 GB, free: 3.242 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.3569, allocations: 8 kB / 1.17 GB, free: 3.234 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.3569, allocations: 7.938 kB / 1.17 GB, free: 3.227 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.3569, allocations: 0 / 1.17 GB, free: 3.227 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.572e-05/0.357, allocations: 8.359 kB / 1.17 GB, free: 3.219 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.357, allocations: 4 kB / 1.17 GB, free: 3.215 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.3571, allocations: 19.92 kB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.3571, allocations: 0 / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (onOffController.y,$PRE.onOffController.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * 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 9.437e-05/0.3572, allocations: 117.7 kB / 1.17 GB, free: 3.07 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.576e-05/0.3573, allocations: 4 kB / 1.17 GB, free: 3.066 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002532/0.3575, allocations: 81.55 kB / 1.17 GB, free: 2.973 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.3576, allocations: 4 kB / 1.17 GB, free: 2.969 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.3576, allocations: 0 / 1.17 GB, free: 2.969 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3576, allocations: 0 / 1.17 GB, free: 2.969 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001946/0.3578, allocations: 181.5 kB / 1.17 GB, free: 2.742 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.3578, allocations: 0 / 1.17 GB, free: 2.742 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.818e-05/0.3578, allocations: 8 kB / 1.17 GB, free: 2.734 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.3579, allocations: 11.98 kB / 1.17 GB, free: 2.723 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.3579, allocations: 0 / 1.17 GB, free: 2.723 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3579, allocations: 0 / 1.17 GB, free: 2.723 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.3579, allocations: 0 / 1.17 GB, free: 2.723 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002611/0.3581, allocations: 167.5 kB / 1.17 GB, free: 2.543 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.664e-05/0.3582, allocations: 81.48 kB / 1.171 GB, free: 2.445 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.743e-05/0.3582, allocations: 0 / 1.171 GB, free: 2.445 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001326/0.3584, allocations: 19.97 kB / 1.171 GB, free: 2.426 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.387e-05/0.3584, allocations: 11.98 kB / 1.171 GB, free: 2.414 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/0.3584, allocations: 4 kB / 1.171 GB, free: 2.41 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.388e-05/0.3585, allocations: 87.22 kB / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.633e-06/0.3585, allocations: 0 / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002206/0.3587, allocations: 11.94 kB / 1.171 GB, free: 2.312 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (onOffController.y) * Number of discrete states: 1 (onOffController.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * 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 Backend phase and start with SimCode phase: time 0.0006828/0.3594, allocations: 0.7124 MB / 1.171 GB, free: 1.574 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002456/0.3597, allocations: 47.95 kB / 1.171 GB, free: 1.527 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3597, allocations: 3.938 kB / 1.171 GB, free: 1.523 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 9.086e-05/0.3598, allocations: 23.98 kB / 1.171 GB, free: 1.5 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003485/0.3602, allocations: 7.984 kB / 1.171 GB, free: 1.492 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001601/0.3618, allocations: 1.321 MB / 1.173 GB, free: 96 kB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003138/0.3621, allocations: 0.6807 MB / 1.173 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.78e-05/0.3621, allocations: 11.94 kB / 1.173 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.382e-05/0.3622, allocations: 11.44 kB / 1.173 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of SimCode: time 6.21e-07/0.3622, allocations: 0 / 1.173 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02112/0.3833, allocations: 1.815 MB / 1.175 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.811/8.194, allocations: 13.55 kB / 1.175 GB, free: 13.65 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches