Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001353/0.001352, allocations: 195.5 kB / 16.26 MB, free: 6.621 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.437/1.437, allocations: 222.9 MB / 239.9 MB, free: 4.52 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.731/2.731, allocations: 437 MB / 0.71 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 63.91 kB / 0.8687 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.806/0.8074, allocations: 151.6 MB / 1.017 GB, free: 2.727 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002544/0.81, allocations: 0.7496 MB / 1.018 GB, free: 1.98 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001609/0.8116, allocations: 1.062 MB / 1.019 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.738e-05/0.8117, allocations: 0 / 1.019 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.647e-05/0.8117, allocations: 7.875 kB / 1.019 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.761e-05/0.8119, allocations: 7.922 kB / 1.019 GB, free: 0.8867 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003839/0.8123, allocations: 35.97 kB / 1.019 GB, free: 0.8516 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001175/0.8124, allocations: 71.83 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.8125, allocations: 15.97 kB / 1.019 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.262e-05/0.8126, allocations: 27.92 kB / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.613e-05/0.8127, allocations: 39.83 kB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.982e-05/0.8127, allocations: 8 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.032e-05/0.8128, allocations: 19.98 kB / 1.019 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.258e-05/0.8128, allocations: 11.98 kB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.806e-05/0.8129, allocations: 27.86 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001592/0.8131, allocations: 75.81 kB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.8131, allocations: 0 / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.643e-06/0.8131, allocations: 3.938 kB / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.8131, allocations: 0 / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006744/0.8138, allocations: 385.2 kB / 1.019 GB, free: 132 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.8138, allocations: 8.031 kB / 1.019 GB, free: 124 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.303e-05/0.8139, allocations: 8.844 kB / 1.019 GB, free: 116 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001453/0.814, allocations: 176.3 kB / 1.019 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.814, allocations: 4.375 kB / 1.019 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.104e-05/0.8141, allocations: 8.375 kB / 1.019 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002237/0.8143, allocations: 78.2 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.273e-06/0.8143, allocations: 4.188 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.8143, allocations: 7.938 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.8143, allocations: 0 / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001986/0.8145, allocations: 51.95 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000595/0.8151, allocations: 312.6 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002467/0.8154, allocations: 86.48 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.8155, allocations: 44.77 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.203e-05/0.8156, allocations: 0 / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003144/0.8159, allocations: 99.59 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 4.288e-06/0.8159, allocations: 7.938 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0005326/0.8165, allocations: 165.5 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.8165, allocations: 59.41 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.8166, allocations: 109.8 kB / 1.02 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.125e-05/0.8167, allocations: 33.7 kB / 1.02 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.143e-05/0.8167, allocations: 84.38 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.022e-05/0.8168, allocations: 31.62 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.137e-05/0.8169, allocations: 37.7 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001864/0.8171, allocations: 314.8 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.8172, allocations: 35.97 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.8173, allocations: 62.55 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002679/0.8176, allocations: 110.3 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.8176, allocations: 0 / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003394/0.818, allocations: 141.4 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.849e-05/0.818, allocations: 4 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.818, allocations: 0 / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.818, allocations: 8.062 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.8182, allocations: 28.16 kB / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.8182, allocations: 0 / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.815e-05/0.8183, allocations: 12 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.492e-05/0.8183, allocations: 4 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 0.000123/0.8184, allocations: 133.8 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.488e-05/0.8185, allocations: 3.906 kB / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003703/0.8188, allocations: 158.2 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.8189, allocations: 0 / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.8189, allocations: 0 / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.8189, allocations: 4 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00059/0.8195, allocations: 398.4 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.8195, allocations: 0 / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.457e-05/0.8196, allocations: 19.92 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.8196, allocations: 4 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.8196, allocations: 0 / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.8196, allocations: 4 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.8196, allocations: 0 / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003589/0.82, allocations: 235.3 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.381e-05/0.82, allocations: 85.02 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.201e-05/0.82, allocations: 8 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.8202, allocations: 7.984 kB / 1.022 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.181e-05/0.8202, allocations: 7.984 kB / 1.022 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.411e-05/0.8202, allocations: 11.94 kB / 1.022 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.84e-05/0.8203, allocations: 83.27 kB / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8203, allocations: 0 / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002551/0.8206, allocations: 20 kB / 1.022 GB, free: 12.57 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001687/0.8207, allocations: 103.2 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003486/0.8211, allocations: 111.7 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.421e-06/0.8211, allocations: 4 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001579/0.8213, allocations: 44.25 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003124/0.8216, allocations: 18.22 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004133/0.822, allocations: 178.8 kB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.8223, allocations: 0.6885 MB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.217e-05/0.8224, allocations: 4.438 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.516e-05/0.8224, allocations: 15.42 kB / 1.024 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.8224, allocations: 0 / 1.024 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of Templates: time 0.003646/0.8261, allocations: 0.9732 MB / 1.025 GB, free: 10.38 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches