Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001031/0.001032, allocations: 91.92 kB / 16.02 MB, free: 80 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.001422/0.001422, allocations: 179.3 kB / 16.92 MB, free: 6.652 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.482/1.482, allocations: 223.3 MB / 241 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.466/2.466, allocations: 390.9 MB / 0.667 GB, free: 2.34 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003938/0.0003939, allocations: 8 kB / 0.8166 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7753/0.7757, allocations: 142.4 MB / 0.9557 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0008712/0.7766, allocations: 396.7 kB / 0.9561 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001245/0.7779, allocations: 1.043 MB / 0.9571 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.198e-05/0.7779, allocations: 0 / 0.9571 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.098e-05/0.778, allocations: 1.406 kB / 0.9571 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.995e-05/0.778, allocations: 3.938 kB / 0.9571 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000241/0.7783, allocations: 36.38 kB / 0.9572 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.996e-05/0.7784, allocations: 41.61 kB / 0.9572 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.7785, allocations: 12.52 kB / 0.9572 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.13e-05/0.7786, allocations: 9.219 kB / 0.9572 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.782e-05/0.7786, allocations: 21.28 kB / 0.9572 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.42e-05/0.7787, allocations: 1.969 kB / 0.9572 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.48e-05/0.7787, allocations: 16.14 kB / 0.9573 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.774e-05/0.7788, allocations: 9.266 kB / 0.9573 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.175e-05/0.7788, allocations: 38.86 kB / 0.9573 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.403e-05/0.7789, allocations: 36.19 kB / 0.9573 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.7789, allocations: 1.125 kB / 0.9573 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.074e-06/0.7789, allocations: 4 kB / 0.9573 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.7789, allocations: 0 / 0.9573 GB, free: 6.344 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004751/0.7794, allocations: 358.3 kB / 0.9577 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.7795, allocations: 8.625 kB / 0.9577 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.542e-05/0.7795, allocations: 7.75 kB / 0.9577 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.387e-05/0.7796, allocations: 170.6 kB / 0.9579 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.7796, allocations: 5.812 kB / 0.9579 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.811e-05/0.7796, allocations: 2.719 kB / 0.9579 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001902/0.7798, allocations: 62.48 kB / 0.9579 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.7799, allocations: 1.312 kB / 0.9579 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.7799, allocations: 3.938 kB / 0.9579 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.7799, allocations: 1.062 kB / 0.9579 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001915/0.7801, allocations: 55.08 kB / 0.958 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004277/0.7805, allocations: 276.7 kB / 0.9583 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001495/0.7807, allocations: 56.7 kB / 0.9583 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.826e-05/0.7808, allocations: 32.77 kB / 0.9583 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.722e-05/0.7808, allocations: 1.219 kB / 0.9583 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001941/0.781, allocations: 79.8 kB / 0.9584 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.563e-06/0.781, allocations: 0 / 0.9584 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.000399/0.7814, allocations: 125.1 kB / 0.9585 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/0.7815, allocations: 52.47 kB / 0.9586 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.323e-05/0.7815, allocations: 106.2 kB / 0.9587 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.317e-05/0.7816, allocations: 30.98 kB / 0.9587 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.491e-05/0.7816, allocations: 90.11 kB / 0.9588 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.705e-05/0.7816, allocations: 13.27 kB / 0.9588 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.428e-05/0.7817, allocations: 12.03 kB / 0.9588 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.005e-05/0.7817, allocations: 322.8 kB / 0.9591 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.656e-05/0.7818, allocations: 26.89 kB / 0.9592 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001037/0.7819, allocations: 52.47 kB / 0.9592 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001995/0.7821, allocations: 92.8 kB / 0.9593 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.7821, allocations: 5.062 kB / 0.9593 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002558/0.7824, allocations: 110.9 kB / 0.9594 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.7824, allocations: 5.344 kB / 0.9594 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.7824, allocations: 1 kB / 0.9594 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.7825, allocations: 6.219 kB / 0.9594 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.7826, allocations: 16.45 kB / 0.9594 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.7826, allocations: 1.656 kB / 0.9594 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.714e-05/0.7827, allocations: 15.36 kB / 0.9595 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.7827, allocations: 2.219 kB / 0.9595 GB, free: 4.328 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 6.845e-05/0.7827, allocations: 121.8 kB / 0.9596 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.22e-05/0.7828, allocations: 5.062 kB / 0.9596 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002609/0.783, allocations: 112 kB / 0.9597 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.783, allocations: 0 / 0.9597 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.7831, allocations: 1.875 kB / 0.9597 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.7831, allocations: 0 / 0.9597 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003653/0.7834, allocations: 357.8 kB / 0.96 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.7834, allocations: 0 / 0.96 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.922e-05/0.7835, allocations: 8.844 kB / 0.96 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.7835, allocations: 0 / 0.96 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/0.7835, allocations: 13.33 kB / 0.96 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.7835, allocations: 0 / 0.96 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.7835, allocations: 1.312 kB / 0.9601 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000259/0.7838, allocations: 191.7 kB / 0.9602 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.931e-05/0.7838, allocations: 82.67 kB / 0.9603 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.898e-05/0.7839, allocations: 0 / 0.9603 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.505e-05/0.784, allocations: 13.98 kB / 0.9603 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.601e-05/0.784, allocations: 6.688 kB / 0.9603 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.316e-06/0.784, allocations: 8.828 kB / 0.9603 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.959e-05/0.7841, allocations: 88.67 kB / 0.9604 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7841, allocations: 1.312 kB / 0.9604 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002402/0.7843, allocations: 8.469 kB / 0.9604 GB, free: 3.395 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 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * 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.0001499/0.7845, allocations: 111 kB / 0.9605 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002509/0.7847, allocations: 65.45 kB / 0.9606 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.7847, allocations: 6.031 kB / 0.9606 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.7849, allocations: 28.8 kB / 0.9606 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.7851, allocations: 9.047 kB / 0.9606 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003073/0.7854, allocations: 164 kB / 0.9608 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001212/0.7856, allocations: 0.6837 MB / 0.9615 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.611e-05/0.7856, allocations: 14.19 kB / 0.9615 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of SimCode: time 2.71e-07/0.7856, allocations: 1.375 kB / 0.9615 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of Templates: time 0.002285/0.7879, allocations: 0.8197 MB / 0.9623 GB, free: 1.957 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches