Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.744/2.744, allocations: 287.9 MB / 302.9 MB, free: 8.219 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001394/0.001394, allocations: 176.3 kB / 371.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.166/2.166, allocations: 205.4 MB / 0.6301 GB, free: 10.39 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001065/0.001065, allocations: 89.23 kB / 0.7434 GB, free: 6.406 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000469/0.0004692, allocations: 14.36 kB / 0.8662 GB, free: 141.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1565/0.157, allocations: 115.3 MB / 0.9788 GB, free: 28.16 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale): time 0.001956/0.159, allocations: 1.668 MB / 0.9804 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002296/0.1613, allocations: 1.593 MB / 0.982 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003198/0.1616, allocations: 8 kB / 0.982 GB, free: 24.87 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 8.066e-05/0.1617, allocations: 35.53 kB / 0.982 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0003909/0.1621, allocations: 95.66 kB / 0.9821 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009113/0.1631, allocations: 322 kB / 0.9824 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0005776/0.1637, allocations: 425.2 kB / 0.9828 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000405/0.1641, allocations: 242.6 kB / 0.983 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002198/0.1643, allocations: 199.1 kB / 0.9832 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002237/0.1646, allocations: 218.8 kB / 0.9834 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 7.134e-05/0.1646, allocations: 24 kB / 0.9835 GB, free: 23.35 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001165/0.1648, allocations: 31.98 kB / 0.9835 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.997e-05/0.1648, allocations: 83.59 kB / 0.9836 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001013/0.165, allocations: 113.4 kB / 0.9837 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0006132/0.1656, allocations: 0.6626 MB / 0.9843 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.632e-06/0.1656, allocations: 0 / 0.9843 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.252e-06/0.1656, allocations: 0 / 0.9843 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 9.833e-06/0.1656, allocations: 0 / 0.9843 GB, free: 22.45 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001611/0.1673, allocations: 0.8891 MB / 0.9852 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.1673, allocations: 8.031 kB / 0.9852 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/0.1675, allocations: 71.16 kB / 0.9853 GB, free: 21.42 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006736/0.1682, allocations: 433.8 kB / 0.9857 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.409e-05/0.1682, allocations: 41 kB / 0.9857 GB, free: 20.92 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.1684, allocations: 67.92 kB / 0.9858 GB, free: 20.85 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009852/0.1694, allocations: 494.9 kB / 0.9863 GB, free: 20.35 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.862e-05/0.1694, allocations: 4 kB / 0.9863 GB, free: 20.35 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.189e-05/0.1695, allocations: 24 kB / 0.9863 GB, free: 20.32 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.1695, allocations: 12 kB / 0.9863 GB, free: 20.31 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008632/0.1703, allocations: 359.8 kB / 0.9866 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002767/0.1731, allocations: 1.586 MB / 0.9882 GB, free: 18.32 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001023/0.1742, allocations: 0.8896 MB / 0.9891 GB, free: 17.3 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.993e-05/0.1743, allocations: 4 kB / 0.9891 GB, free: 17.3 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00057/0.1749, allocations: 260.9 kB / 0.9893 GB, free: 17.03 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=47): time 4.613e-06/0.1749, allocations: 0 / 0.9893 GB, free: 17.03 MB / 0.6198 GB Notification: Performance of matching and sorting (n=47): time 0.001357/0.1762, allocations: 0.5532 MB / 0.9898 GB, free: 16.47 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.1763, allocations: 115.2 kB / 0.99 GB, free: 16.34 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005208/0.1769, allocations: 409.9 kB / 0.9903 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 7.626e-05/0.1769, allocations: 37.7 kB / 0.9904 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001935/0.1771, allocations: 269 kB / 0.9906 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.1773, allocations: 153.8 kB / 0.9908 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.406e-05/0.1773, allocations: 12 kB / 0.9908 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.251e-05/0.1774, allocations: 358.8 kB / 0.9911 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005163/0.178, allocations: 197 kB / 0.9913 GB, free: 14.9 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000558/0.1785, allocations: 291.4 kB / 0.9916 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005429/0.1791, allocations: 268.1 kB / 0.9919 GB, free: 14.31 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.837e-06/0.1791, allocations: 0 / 0.9919 GB, free: 14.31 MB / 0.6198 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001436/0.1806, allocations: 0.6278 MB / 0.9925 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001857/0.1808, allocations: 0.6814 MB / 0.9931 GB, free: 12.92 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.1808, allocations: 4 kB / 0.9931 GB, free: 12.92 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.323e-05/0.1808, allocations: 4 kB / 0.9931 GB, free: 12.91 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004399/0.1813, allocations: 95.83 kB / 0.9932 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.1813, allocations: 7.984 kB / 0.9932 GB, free: 12.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007022/0.182, allocations: 135.4 kB / 0.9934 GB, free: 12.68 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-05/0.1821, allocations: 27.92 kB / 0.9934 GB, free: 12.65 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.1821, allocations: 4 kB / 0.9934 GB, free: 12.65 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001088/0.1832, allocations: 0.5289 MB / 0.9939 GB, free: 12.11 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.1833, allocations: 0 / 0.9939 GB, free: 12.11 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.017e-05/0.1833, allocations: 4 kB / 0.9939 GB, free: 12.11 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003411/0.1836, allocations: 75.91 kB / 0.994 GB, free: 12.03 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.1837, allocations: 7.953 kB / 0.994 GB, free: 12.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006628/0.1843, allocations: 116.9 kB / 0.9941 GB, free: 11.91 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.038e-05/0.1844, allocations: 27.98 kB / 0.9941 GB, free: 11.88 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition6,$whenCondition5,$PRE.booPul.y,booPul.y,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003409/0.1848, allocations: 262.9 kB / 0.9944 GB, free: 11.62 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.766e-05/0.1849, allocations: 51.56 kB / 0.9944 GB, free: 11.57 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001154/0.185, allocations: 57.17 kB / 0.9945 GB, free: 11.51 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.185, allocations: 4 kB / 0.9945 GB, free: 11.5 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.071e-06/0.185, allocations: 7.953 kB / 0.9945 GB, free: 11.5 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.93e-06/0.185, allocations: 3.984 kB / 0.9945 GB, free: 11.49 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001847/0.1869, allocations: 1.087 MB / 0.9956 GB, free: 10.35 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.723e-06/0.1869, allocations: 0 / 0.9956 GB, free: 10.35 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004347/0.1874, allocations: 75.91 kB / 0.9956 GB, free: 10.27 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.129e-05/0.1874, allocations: 7.953 kB / 0.9957 GB, free: 10.27 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.694e-05/0.1875, allocations: 11.98 kB / 0.9957 GB, free: 10.25 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.322e-06/0.1875, allocations: 4 kB / 0.9957 GB, free: 10.25 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.086e-06/0.1875, allocations: 0 / 0.9957 GB, free: 10.25 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.1889, allocations: 0.7129 MB / 0.9964 GB, free: 9.52 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001265/0.1891, allocations: 132.4 kB / 0.9965 GB, free: 9.371 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.559e-05/0.1892, allocations: 11.95 kB / 0.9965 GB, free: 9.359 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002903/0.1895, allocations: 27.98 kB / 0.9965 GB, free: 9.332 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.374e-05/0.1895, allocations: 28.39 kB / 0.9966 GB, free: 9.305 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.51e-05/0.1896, allocations: 16 kB / 0.9966 GB, free: 9.289 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0003757/0.19, allocations: 291.1 kB / 0.9969 GB, free: 9.004 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.51e-07/0.19, allocations: 0 / 0.9969 GB, free: 9.004 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0009108/0.1909, allocations: 215.2 kB / 0.9971 GB, free: 8.793 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pidSca.I.y,pidSca.D.x,pla1.y,pidNoSca.I.y,pidNoSca.D.x,pla2.y) * Number of discrete variables: 8 ($whenCondition6,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001906/0.1911, allocations: 127.2 kB / 0.9972 GB, free: 8.66 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001784/0.1929, allocations: 0.9461 MB / 0.9981 GB, free: 7.664 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.193, allocations: 4.562 kB / 0.9981 GB, free: 7.66 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0004435/0.1934, allocations: 206.3 kB / 0.9983 GB, free: 7.461 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006475/0.1941, allocations: 83.34 kB / 0.9984 GB, free: 7.383 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001758/0.1958, allocations: 1.104 MB / 0.9995 GB, free: 6.25 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003125/0.1962, allocations: 0.871 MB / 1 GB, free: 5.344 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0003058/0.1965, allocations: 55.56 kB / 1 GB, free: 5.289 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001346/0.1967, allocations: 39.44 kB / 1 GB, free: 5.25 MB / 0.6198 GB Notification: Performance of SimCode: time 1.69e-06/0.1967, allocations: 4 kB / 1 GB, free: 5.246 MB / 0.6198 GB Notification: Performance of Templates: time 0.01582/0.2125, allocations: 6.479 MB / 1.007 GB, free: 14.83 MB / 0.6355 GB