Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 106.5 kB / 15.99 MB, free: 5.914 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.0014/0.0014, allocations: 194 kB / 16.91 MB, free: 5.758 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.286/1.286, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002008/0.002008, allocations: 275.1 kB / 291 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9227/0.9227, allocations: 169.2 MB / 0.4985 GB, free: 4.633 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 100.4 kB / 0.5953 GB, free: 15.48 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.1633, allocations: 86.97 MB / 0.6803 GB, free: 8.531 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003639/0.167, allocations: 2.548 MB / 0.6828 GB, free: 5.965 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001178/0.1682, allocations: 0.7711 MB / 0.6835 GB, free: 5.191 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.648e-05/0.1683, allocations: 7.938 kB / 0.6835 GB, free: 5.184 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001095/0.1694, allocations: 0.5066 MB / 0.684 GB, free: 4.672 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002501/0.1697, allocations: 103.6 kB / 0.6841 GB, free: 4.57 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002747/0.17, allocations: 103.8 kB / 0.6842 GB, free: 4.469 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002247/0.1702, allocations: 195.4 kB / 0.6844 GB, free: 4.277 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003456/0.1706, allocations: 178.1 kB / 0.6846 GB, free: 4.102 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.405e-05/0.1707, allocations: 87.69 kB / 0.6847 GB, free: 4.016 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002013/0.1709, allocations: 95.66 kB / 0.6847 GB, free: 3.922 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.384e-05/0.1709, allocations: 12 kB / 0.6848 GB, free: 3.91 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001686/0.1711, allocations: 111.8 kB / 0.6849 GB, free: 3.801 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.788e-05/0.1711, allocations: 51.89 kB / 0.6849 GB, free: 3.75 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.809e-05/0.1712, allocations: 83.58 kB / 0.685 GB, free: 3.668 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001999/0.1714, allocations: 167.6 kB / 0.6851 GB, free: 3.504 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1714, allocations: 0 / 0.6851 GB, free: 3.504 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1715, allocations: 0 / 0.6851 GB, free: 3.504 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.1715, allocations: 0 / 0.6851 GB, free: 3.504 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0005718/0.172, allocations: 455.3 kB / 0.6856 GB, free: 3.008 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.1721, allocations: 8.031 kB / 0.6856 GB, free: 3 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003518/0.1724, allocations: 44.7 kB / 0.6856 GB, free: 2.957 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002203/0.1727, allocations: 212.1 kB / 0.6858 GB, free: 2.711 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.1727, allocations: 12.59 kB / 0.6858 GB, free: 2.699 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.092e-05/0.1727, allocations: 12.38 kB / 0.6859 GB, free: 2.688 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003366/0.1731, allocations: 239.9 kB / 0.6861 GB, free: 2.434 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.1731, allocations: 0 / 0.6861 GB, free: 2.434 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.005e-05/0.1731, allocations: 8 kB / 0.6861 GB, free: 2.426 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.786e-05/0.1731, allocations: 12.27 kB / 0.6861 GB, free: 2.414 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000212/0.1734, allocations: 144.7 kB / 0.6862 GB, free: 2.273 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009478/0.1743, allocations: 1.131 MB / 0.6873 GB, free: 1.012 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.284e-05/0.1744, allocations: 42.56 kB / 0.6874 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.106e-05/0.1744, allocations: 24.88 kB / 0.6874 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.191e-05/0.1744, allocations: 4 kB / 0.6874 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.351e-05/0.1745, allocations: 34.5 kB / 0.6875 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.1745, allocations: 0 / 0.6875 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001772/0.1747, allocations: 73.53 kB / 0.6875 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.069e-05/0.1747, allocations: 55.41 kB / 0.6876 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001366/0.1748, allocations: 174.5 kB / 0.6877 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.1749, allocations: 33.7 kB / 0.6878 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.808e-05/0.175, allocations: 143.3 kB / 0.6879 GB, free: 392 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.608e-06/0.175, allocations: 3.906 kB / 0.6879 GB, free: 388 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.437e-05/0.175, allocations: 37.61 kB / 0.6879 GB, free: 344 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.51e-05/0.1751, allocations: 322.8 kB / 0.6883 GB, free: 12 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2733/0.4484, allocations: 21.44 kB / 0.6883 GB, free: 18.3 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.901e-05/0.4485, allocations: 92.77 kB / 0.6884 GB, free: 18.21 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001465/0.4487, allocations: 122.7 kB / 0.6885 GB, free: 18.12 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.4487, allocations: 1.031 kB / 0.6885 GB, free: 18.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002481/0.4489, allocations: 133.5 kB / 0.6886 GB, free: 18.09 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.449, allocations: 7.812 kB / 0.6886 GB, free: 18.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.449, allocations: 3.672 kB / 0.6886 GB, free: 18.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/0.449, allocations: 4.219 kB / 0.6886 GB, free: 18.09 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001412/0.4492, allocations: 23.34 kB / 0.6886 GB, free: 18.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.4492, allocations: 8.297 kB / 0.6887 GB, free: 18.08 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.072e-05/0.4493, allocations: 20.61 kB / 0.6887 GB, free: 18.08 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.222e-05/0.4493, allocations: 9.031 kB / 0.6887 GB, free: 18.08 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001053/0.4494, allocations: 127.2 kB / 0.6888 GB, free: 18 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 6.118e-05/0.4495, allocations: 85.98 kB / 0.6889 GB, free: 17.91 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001022/0.4496, allocations: 119.8 kB / 0.689 GB, free: 17.82 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.182e-06/0.4496, allocations: 0 / 0.689 GB, free: 17.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001798/0.4498, allocations: 134.8 kB / 0.6891 GB, free: 17.77 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.247e-06/0.4498, allocations: 6 kB / 0.6891 GB, free: 17.77 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.167e-06/0.4498, allocations: 6.922 kB / 0.6891 GB, free: 17.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.797e-06/0.4498, allocations: 3.531 kB / 0.6891 GB, free: 17.77 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.45e-05/0.4499, allocations: 31.14 kB / 0.6892 GB, free: 17.77 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.4499, allocations: 7.547 kB / 0.6892 GB, free: 17.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.568e-05/0.45, allocations: 12.59 kB / 0.6892 GB, free: 17.77 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-06/0.45, allocations: 6.344 kB / 0.6892 GB, free: 17.77 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.181e-05/0.45, allocations: 192.2 kB / 0.6894 GB, free: 17.58 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.831e-05/0.4501, allocations: 11.03 kB / 0.6894 GB, free: 17.58 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.532e-05/0.4501, allocations: 17.73 kB / 0.6894 GB, free: 17.58 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.4501, allocations: 0 / 0.6894 GB, free: 17.58 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.4501, allocations: 1.125 kB / 0.6894 GB, free: 17.58 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.4501, allocations: 4.328 kB / 0.6894 GB, free: 17.58 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003629/0.4505, allocations: 473.8 kB / 0.6899 GB, free: 17.17 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.4505, allocations: 1.406 kB / 0.6899 GB, free: 17.17 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.138e-05/0.4506, allocations: 10.2 kB / 0.6899 GB, free: 17.17 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.4506, allocations: 3.094 kB / 0.6899 GB, free: 17.17 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.4506, allocations: 5.656 kB / 0.6899 GB, free: 17.16 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.4506, allocations: 1.938 kB / 0.6899 GB, free: 17.16 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.4506, allocations: 1.438 kB / 0.6899 GB, free: 17.16 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.517e-05/0.4507, allocations: 112.3 kB / 0.69 GB, free: 17.08 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.44e-05/0.4507, allocations: 101.5 kB / 0.6901 GB, free: 16.98 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.916e-05/0.4508, allocations: 7.234 kB / 0.6901 GB, free: 16.97 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.334e-05/0.4508, allocations: 1.5 kB / 0.6901 GB, free: 16.97 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.854e-05/0.4508, allocations: 8.172 kB / 0.6901 GB, free: 16.97 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.489e-06/0.4508, allocations: 5.656 kB / 0.6901 GB, free: 16.97 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.311e-05/0.4509, allocations: 124.8 kB / 0.6902 GB, free: 16.89 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4509, allocations: 1.312 kB / 0.6902 GB, free: 16.89 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003386/0.4513, allocations: 49.5 kB / 0.6903 GB, free: 16.89 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 8.349e-05/0.4514, allocations: 97.84 kB / 0.6904 GB, free: 16.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002046/0.4516, allocations: 114.1 kB / 0.6905 GB, free: 16.78 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.4516, allocations: 0 / 0.6905 GB, free: 16.78 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.698e-05/0.4516, allocations: 18.84 kB / 0.6905 GB, free: 16.77 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002671/0.4519, allocations: 23.39 kB / 0.6905 GB, free: 16.77 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004807/0.4524, allocations: 358.5 kB / 0.6909 GB, free: 16.52 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001533/0.4526, allocations: 0.7299 MB / 0.6916 GB, free: 15.82 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.13e-05/0.4526, allocations: 13.59 kB / 0.6916 GB, free: 15.81 MB / 494.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4526, allocations: 0.8438 kB / 0.6916 GB, free: 15.81 MB / 494.1 MB Notification: Performance of Templates: time 0.003302/0.4559, allocations: 1.45 MB / 0.693 GB, free: 15.73 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)