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.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.Controls.OBC.CDL.Logical.Validation.OnOffController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onOffController.reference|onOffController.u|onOffController.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onOffController.reference|onOffController.u|onOffController.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 98.88 kB / 16.02 MB, free: 76 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.00149/0.00149, allocations: 185.3 kB / 16.92 MB, free: 6.773 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.442/1.442, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.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.751/2.751, allocations: 437.8 MB / 0.7128 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004081/0.0004082, allocations: 8 kB / 0.8735 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7639/0.7643, allocations: 153.8 MB / 1.024 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController): time 0.001007/0.7654, allocations: 450.3 kB / 1.024 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001109/0.7665, allocations: 0.8274 MB / 1.025 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.359e-05/0.7666, allocations: 4 kB / 1.025 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.216e-05/0.7666, allocations: 3.938 kB / 1.025 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.791e-05/0.7667, allocations: 0 / 1.025 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001664/0.7668, allocations: 15.98 kB / 1.025 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.208e-05/0.7669, allocations: 43.84 kB / 1.025 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.7671, allocations: 15.98 kB / 1.025 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.623e-05/0.7671, allocations: 15.92 kB / 1.025 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.478e-05/0.7672, allocations: 23.86 kB / 1.025 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.567e-05/0.7672, allocations: 0 / 1.025 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.106e-05/0.7672, allocations: 4 kB / 1.025 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.983e-05/0.7673, allocations: 4 kB / 1.025 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.296e-05/0.7673, allocations: 41.56 kB / 1.025 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 7.597e-05/0.7674, allocations: 31.92 kB / 1.025 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.7674, allocations: 0 / 1.025 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.312e-06/0.7674, allocations: 0 / 1.025 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.7674, allocations: 0 / 1.025 GB, free: 14.4 MB / 0.7794 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.00062/0.7681, allocations: 385.4 kB / 1.026 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.7681, allocations: 12.03 kB / 1.026 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.234e-05/0.7681, allocations: 8.844 kB / 1.026 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001156/0.7683, allocations: 176.2 kB / 1.026 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.7683, allocations: 4.375 kB / 1.026 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.443e-05/0.7683, allocations: 4.375 kB / 1.026 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000208/0.7685, allocations: 62.23 kB / 1.026 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.7685, allocations: 192 / 1.026 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.7686, allocations: 11.88 kB / 1.026 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.7686, allocations: 4 kB / 1.026 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001969/0.7688, allocations: 51.95 kB / 1.026 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005739/0.7694, allocations: 296.8 kB / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002736/0.7696, allocations: 62.48 kB / 1.026 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.7698, allocations: 36.98 kB / 1.026 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/0.7698, allocations: 0 / 1.026 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.914e-05/0.7698, allocations: 38.56 kB / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.7698, allocations: 0 / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003951/0.7702, allocations: 109.7 kB / 1.026 GB, free: 13 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.637e-05/0.7703, allocations: 51.41 kB / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.7704, allocations: 113.8 kB / 1.027 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.7704, allocations: 33.7 kB / 1.027 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.734e-05/0.7705, allocations: 96.14 kB / 1.027 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.999e-05/0.7705, allocations: 11.83 kB / 1.027 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.394e-05/0.7705, allocations: 13.72 kB / 1.027 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.7706, allocations: 322.8 kB / 1.027 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.781e-05/0.7707, allocations: 23.98 kB / 1.027 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.194e-05/0.7708, allocations: 35.97 kB / 1.027 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.771, allocations: 48.81 kB / 1.027 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.771, allocations: 0 / 1.027 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002357/0.7713, allocations: 93.56 kB / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.7713, allocations: 7.938 kB / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.7713, allocations: 0 / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.7713, allocations: 0 / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.388e-05/0.7714, allocations: 19.98 kB / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.7714, allocations: 0 / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001136/0.7715, allocations: 20.36 kB / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.105e-06/0.7715, allocations: 4 kB / 1.027 GB, free: 12.06 MB / 0.7794 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 8.466e-05/0.7716, allocations: 114.3 kB / 1.027 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.854e-05/0.7717, allocations: 8 kB / 1.027 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002683/0.7719, allocations: 93.48 kB / 1.027 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.772, allocations: 0 / 1.027 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.772, allocations: 4 kB / 1.027 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.772, allocations: 3.938 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000164/0.7721, allocations: 173.5 kB / 1.028 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.7722, allocations: 0 / 1.028 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.588e-05/0.7722, allocations: 15.98 kB / 1.028 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.7722, allocations: 0 / 1.028 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.7722, allocations: 0 / 1.028 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.7723, allocations: 0 / 1.028 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.7723, allocations: 0 / 1.028 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002927/0.7726, allocations: 183.5 kB / 1.028 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.197e-05/0.7726, allocations: 85 kB / 1.028 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/0.7726, allocations: 0 / 1.028 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001394/0.7728, allocations: 19.98 kB / 1.028 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.754e-05/0.7728, allocations: 7.984 kB / 1.028 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.7728, allocations: 8 kB / 1.028 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.653e-05/0.7729, allocations: 91.2 kB / 1.028 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.443e-06/0.7729, allocations: 4 kB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002157/0.7731, allocations: 7.938 kB / 1.028 GB, free: 11.16 MB / 0.7794 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.000126/0.7733, allocations: 103.2 kB / 1.028 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002401/0.7735, allocations: 64.17 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.7735, allocations: 0 / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.7736, allocations: 27.98 kB / 1.028 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002965/0.7739, allocations: 17.47 kB / 1.028 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003219/0.7743, allocations: 172 kB / 1.028 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002397/0.7745, allocations: 0.6809 MB / 1.029 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.606e-05/0.7746, allocations: 15.44 kB / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.7746, allocations: 0 / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of Templates: time 0.002281/0.7769, allocations: 0.7663 MB / 1.03 GB, free: 9.262 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.makefile (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 & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.mat","/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