Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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.00168/0.00168, allocations: 101.6 kB / 16.27 MB, free: 6.418 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.001894/0.001894, allocations: 189.8 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.754/1.754, allocations: 292.3 MB / 0.5495 GB, free: 17.41 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 67.84 kB / 0.6722 GB, free: 6.543 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2022/0.2037, allocations: 114.5 MB / 0.784 GB, free: 3.879 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003941/0.2077, allocations: 2.493 MB / 0.7865 GB, free: 1.367 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001262/0.209, allocations: 0.7868 MB / 0.7872 GB, free: 0.5781 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.608e-05/0.2091, allocations: 4 kB / 0.7872 GB, free: 0.5742 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.3509/0.56, allocations: 0.5667 MB / 0.7878 GB, free: 46.18 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0005329/0.5606, allocations: 110.6 kB / 0.7879 GB, free: 46.18 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004165/0.561, allocations: 106.7 kB / 0.788 GB, free: 46.18 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003422/0.5614, allocations: 194.4 kB / 0.7882 GB, free: 46.18 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004358/0.5618, allocations: 165.3 kB / 0.7883 GB, free: 46.18 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001336/0.562, allocations: 80.86 kB / 0.7884 GB, free: 46.18 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002319/0.5622, allocations: 96.06 kB / 0.7885 GB, free: 46.17 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.59e-05/0.5622, allocations: 13.72 kB / 0.7885 GB, free: 46.17 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002329/0.5625, allocations: 106 kB / 0.7886 GB, free: 46.17 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 7.295e-05/0.5626, allocations: 59.17 kB / 0.7887 GB, free: 46.17 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 8.336e-05/0.5627, allocations: 71.27 kB / 0.7887 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003119/0.563, allocations: 221.8 kB / 0.7889 GB, free: 46.12 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.563, allocations: 0 / 0.7889 GB, free: 46.12 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.904e-06/0.563, allocations: 0 / 0.7889 GB, free: 46.12 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.545e-05/0.563, allocations: 0 / 0.7889 GB, free: 46.12 MB / 0.6544 GB 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.0006315/0.5637, allocations: 444.8 kB / 0.7894 GB, free: 45.73 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.5637, allocations: 12.59 kB / 0.7894 GB, free: 45.73 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004215/0.5641, allocations: 51.11 kB / 0.7894 GB, free: 45.73 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002211/0.5644, allocations: 212.8 kB / 0.7896 GB, free: 45.52 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.5644, allocations: 11.78 kB / 0.7896 GB, free: 45.52 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.391e-05/0.5644, allocations: 13.77 kB / 0.7897 GB, free: 45.52 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003179/0.5647, allocations: 234.5 kB / 0.7899 GB, free: 45.45 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.5648, allocations: 9.422 kB / 0.7899 GB, free: 45.44 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.137e-05/0.5648, allocations: 6.312 kB / 0.7899 GB, free: 45.44 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.153e-05/0.5648, allocations: 21.03 kB / 0.7899 GB, free: 45.44 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002376/0.5651, allocations: 143.1 kB / 0.7901 GB, free: 45.44 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008506/0.5659, allocations: 1.131 MB / 0.7912 GB, free: 44.47 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 6.557e-05/0.566, allocations: 42.48 kB / 0.7912 GB, free: 44.45 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.835e-05/0.5661, allocations: 19.97 kB / 0.7912 GB, free: 44.44 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.127e-05/0.5661, allocations: 1.062 kB / 0.7912 GB, free: 44.44 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.86e-05/0.5661, allocations: 31.66 kB / 0.7912 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=4): time 1.203e-06/0.5661, allocations: 3.938 kB / 0.7913 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of matching and sorting (n=4): time 0.000177/0.5663, allocations: 74.52 kB / 0.7913 GB, free: 44.36 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.826e-05/0.5663, allocations: 61.28 kB / 0.7914 GB, free: 44.3 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000124/0.5664, allocations: 173.9 kB / 0.7915 GB, free: 44.2 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 9.137e-06/0.5665, allocations: 25.7 kB / 0.7916 GB, free: 44.16 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.536e-05/0.5665, allocations: 145.2 kB / 0.7917 GB, free: 44.05 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 9.348e-06/0.5665, allocations: 10.28 kB / 0.7917 GB, free: 44.04 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.162e-05/0.5666, allocations: 34.12 kB / 0.7918 GB, free: 44.02 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.474e-05/0.5667, allocations: 322.2 kB / 0.7921 GB, free: 43.71 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.266e-05/0.5667, allocations: 30.3 kB / 0.7921 GB, free: 43.7 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.377e-05/0.5668, allocations: 84.83 kB / 0.7922 GB, free: 43.62 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001121/0.5669, allocations: 126.1 kB / 0.7923 GB, free: 43.53 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.5669, allocations: 0.5 kB / 0.7923 GB, free: 43.53 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000174/0.5671, allocations: 134.7 kB / 0.7924 GB, free: 43.5 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.5671, allocations: 6.781 kB / 0.7924 GB, free: 43.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.5671, allocations: 5.719 kB / 0.7924 GB, free: 43.5 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.5671, allocations: 3.125 kB / 0.7924 GB, free: 43.5 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.5672, allocations: 35.36 kB / 0.7925 GB, free: 43.49 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.5673, allocations: 3.312 kB / 0.7925 GB, free: 43.49 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.891e-05/0.5673, allocations: 13.41 kB / 0.7925 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.5673, allocations: 13.84 kB / 0.7925 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.301e-05/0.5674, allocations: 122.6 kB / 0.7926 GB, free: 43.4 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.525e-05/0.5675, allocations: 86.19 kB / 0.7927 GB, free: 43.31 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 8.965e-05/0.5676, allocations: 124 kB / 0.7928 GB, free: 43.22 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.393e-06/0.5676, allocations: 0 / 0.7928 GB, free: 43.22 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.000175/0.5678, allocations: 131.7 kB / 0.7929 GB, free: 43.18 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 7.975e-06/0.5678, allocations: 8.062 kB / 0.7929 GB, free: 43.18 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-06/0.5678, allocations: 4.031 kB / 0.793 GB, free: 43.18 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.907e-06/0.5678, allocations: 9.562 kB / 0.793 GB, free: 43.18 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.823e-05/0.5679, allocations: 25.11 kB / 0.793 GB, free: 43.18 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.5679, allocations: 13.09 kB / 0.793 GB, free: 43.17 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.314e-05/0.568, allocations: 16.03 kB / 0.793 GB, free: 43.16 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-06/0.568, allocations: 5.25 kB / 0.793 GB, free: 43.16 MB / 0.6544 GB 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 5.734e-05/0.568, allocations: 188.9 kB / 0.7932 GB, free: 42.98 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.981e-05/0.5681, allocations: 6.906 kB / 0.7932 GB, free: 42.98 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.167e-05/0.5681, allocations: 17.89 kB / 0.7932 GB, free: 42.98 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.5681, allocations: 3.938 kB / 0.7932 GB, free: 42.97 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.5681, allocations: 4 kB / 0.7932 GB, free: 42.97 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.5681, allocations: 0 / 0.7932 GB, free: 42.97 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003247/0.5684, allocations: 476.1 kB / 0.7937 GB, free: 42.56 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.5685, allocations: 0 / 0.7937 GB, free: 42.56 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.228e-05/0.5685, allocations: 14.33 kB / 0.7937 GB, free: 42.56 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.5685, allocations: 128 / 0.7937 GB, free: 42.56 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.775e-06/0.5685, allocations: 4 kB / 0.7937 GB, free: 42.55 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.5685, allocations: 3.5 kB / 0.7937 GB, free: 42.55 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.5685, allocations: 5.688 kB / 0.7937 GB, free: 42.55 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.616e-05/0.5686, allocations: 110.4 kB / 0.7938 GB, free: 42.46 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.783e-05/0.5687, allocations: 93.7 kB / 0.7939 GB, free: 42.36 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.087e-05/0.5687, allocations: 5.562 kB / 0.7939 GB, free: 42.36 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.478e-05/0.5687, allocations: 3.406 kB / 0.7939 GB, free: 42.36 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.814e-05/0.5688, allocations: 0 / 0.7939 GB, free: 42.36 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-06/0.5688, allocations: 7.062 kB / 0.7939 GB, free: 42.36 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 7.066e-05/0.5689, allocations: 125 kB / 0.794 GB, free: 42.29 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5689, allocations: 0 / 0.794 GB, free: 42.29 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.000344/0.5692, allocations: 57.12 kB / 0.7941 GB, free: 42.27 MB / 0.6544 GB 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.382e-05/0.5693, allocations: 101.8 kB / 0.7942 GB, free: 42.18 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0001861/0.5695, allocations: 110.6 kB / 0.7943 GB, free: 42.18 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.5695, allocations: 3.469 kB / 0.7943 GB, free: 42.18 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 2.256e-05/0.5695, allocations: 15.66 kB / 0.7943 GB, free: 42.18 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002573/0.5698, allocations: 25.3 kB / 0.7943 GB, free: 42.18 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004197/0.5702, allocations: 313.7 kB / 0.7946 GB, free: 41.96 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000143/0.5704, allocations: 0.7165 MB / 0.7953 GB, free: 41.27 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.187e-05/0.5704, allocations: 15.72 kB / 0.7954 GB, free: 41.26 MB / 0.6544 GB Notification: Performance of SimCode: time 4.1e-07/0.5704, allocations: 0 / 0.7954 GB, free: 41.26 MB / 0.6544 GB Notification: Performance of Templates: time 0.002881/0.5733, allocations: 1.457 MB / 0.7968 GB, free: 41.2 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)