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.001149/0.001149, allocations: 102.4 kB / 16.29 MB, free: 6.113 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.00129/0.00129, allocations: 183.7 kB / 17.22 MB, free: 5.73 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.509/1.509, 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.897/1.897, allocations: 292.3 MB / 0.5495 GB, free: 17.57 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.001474/0.001474, allocations: 63.91 kB / 0.6722 GB, free: 6.488 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2862, allocations: 114.6 MB / 0.7841 GB, free: 3.812 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004892/0.2911, allocations: 2.485 MB / 0.7865 GB, free: 1.309 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001322/0.2925, allocations: 0.779 MB / 0.7873 GB, free: 0.5273 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.597e-05/0.2926, allocations: 7.938 kB / 0.7873 GB, free: 0.5195 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.5174/0.8099, allocations: 0.566 MB / 0.7878 GB, free: 46.01 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0004739/0.8104, allocations: 110.4 kB / 0.7879 GB, free: 46.01 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003963/0.8108, allocations: 112.8 kB / 0.788 GB, free: 46.01 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002489/0.8111, allocations: 192.4 kB / 0.7882 GB, free: 46.01 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003896/0.8115, allocations: 159 kB / 0.7884 GB, free: 46 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 9.9e-05/0.8116, allocations: 81.31 kB / 0.7885 GB, free: 46 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002298/0.8118, allocations: 100.8 kB / 0.7885 GB, free: 46 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.407e-05/0.8119, allocations: 11.53 kB / 0.7886 GB, free: 46 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000191/0.8121, allocations: 111.4 kB / 0.7887 GB, free: 46 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 6.692e-05/0.8121, allocations: 51.25 kB / 0.7887 GB, free: 45.99 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 8.173e-05/0.8122, allocations: 71.41 kB / 0.7888 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003148/0.8126, allocations: 228 kB / 0.789 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.8126, allocations: 0 / 0.789 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.264e-06/0.8126, allocations: 1.938 kB / 0.789 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.792e-06/0.8126, allocations: 0 / 0.789 GB, free: 45.95 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.000692/0.8133, allocations: 440.8 kB / 0.7894 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.8133, allocations: 11.09 kB / 0.7894 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003878/0.8137, allocations: 48.78 kB / 0.7895 GB, free: 45.55 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001873/0.8139, allocations: 217 kB / 0.7897 GB, free: 45.34 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/0.814, allocations: 10.16 kB / 0.7897 GB, free: 45.34 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.551e-05/0.814, allocations: 15.42 kB / 0.7897 GB, free: 45.34 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003376/0.8143, allocations: 232.1 kB / 0.7899 GB, free: 45.27 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.8144, allocations: 6.406 kB / 0.7899 GB, free: 45.27 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.094e-05/0.8144, allocations: 3.688 kB / 0.7899 GB, free: 45.27 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.989e-05/0.8144, allocations: 20.2 kB / 0.79 GB, free: 45.27 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002361/0.8147, allocations: 154.5 kB / 0.7901 GB, free: 45.26 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009981/0.8157, allocations: 1.127 MB / 0.7912 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 7.638e-05/0.8158, allocations: 42.89 kB / 0.7912 GB, free: 44.27 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.198e-05/0.8158, allocations: 16.67 kB / 0.7913 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.317e-05/0.8158, allocations: 0 / 0.7913 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.86e-05/0.8158, allocations: 31.06 kB / 0.7913 GB, free: 44.22 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=4): time 8.82e-07/0.8158, allocations: 3.562 kB / 0.7913 GB, free: 44.22 MB / 0.6544 GB Notification: Performance of matching and sorting (n=4): time 0.0001882/0.816, allocations: 76.72 kB / 0.7914 GB, free: 44.19 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.755e-05/0.8161, allocations: 57.97 kB / 0.7914 GB, free: 44.12 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.8162, allocations: 175.9 kB / 0.7916 GB, free: 44.02 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 8.697e-06/0.8162, allocations: 25.7 kB / 0.7916 GB, free: 43.99 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.694e-05/0.8163, allocations: 145.2 kB / 0.7918 GB, free: 43.87 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 9.708e-06/0.8163, allocations: 11.84 kB / 0.7918 GB, free: 43.87 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.191e-05/0.8163, allocations: 35.27 kB / 0.7918 GB, free: 43.85 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.278e-05/0.8164, allocations: 320.9 kB / 0.7921 GB, free: 43.54 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.405e-05/0.8165, allocations: 31.19 kB / 0.7921 GB, free: 43.53 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.007e-05/0.8165, allocations: 89.7 kB / 0.7922 GB, free: 43.44 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001073/0.8167, allocations: 123.9 kB / 0.7923 GB, free: 43.36 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.8167, allocations: 4.594 kB / 0.7923 GB, free: 43.36 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001757/0.8168, allocations: 136.7 kB / 0.7925 GB, free: 43.32 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.8169, allocations: 5.25 kB / 0.7925 GB, free: 43.32 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.8169, allocations: 2.625 kB / 0.7925 GB, free: 43.32 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.8169, allocations: 5.25 kB / 0.7925 GB, free: 43.32 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/0.817, allocations: 29.34 kB / 0.7925 GB, free: 43.32 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.817, allocations: 5.25 kB / 0.7925 GB, free: 43.32 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.262e-05/0.8171, allocations: 14.59 kB / 0.7925 GB, free: 43.31 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.8171, allocations: 12.33 kB / 0.7925 GB, free: 43.31 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.746e-05/0.8172, allocations: 118 kB / 0.7927 GB, free: 43.23 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.977e-05/0.8173, allocations: 97.14 kB / 0.7928 GB, free: 43.14 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 8.866e-05/0.8174, allocations: 124.1 kB / 0.7929 GB, free: 43.04 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.733e-06/0.8174, allocations: 2.734 kB / 0.7929 GB, free: 43.04 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001594/0.8175, allocations: 135.3 kB / 0.793 GB, free: 43.01 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 7.604e-06/0.8175, allocations: 8.562 kB / 0.793 GB, free: 43.01 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-06/0.8175, allocations: 4.719 kB / 0.793 GB, free: 43.01 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.066e-06/0.8176, allocations: 3.875 kB / 0.793 GB, free: 43.01 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.592e-05/0.8176, allocations: 26.95 kB / 0.793 GB, free: 43 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.8176, allocations: 12.56 kB / 0.7931 GB, free: 43 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.492e-05/0.8177, allocations: 10.47 kB / 0.7931 GB, free: 42.99 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.094e-06/0.8177, allocations: 5.25 kB / 0.7931 GB, free: 42.99 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 7.529e-05/0.8178, allocations: 191.1 kB / 0.7933 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.583e-05/0.8178, allocations: 6.844 kB / 0.7933 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.093e-05/0.8179, allocations: 12.66 kB / 0.7933 GB, free: 42.8 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.8179, allocations: 3.938 kB / 0.7933 GB, free: 42.8 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.299e-06/0.8179, allocations: 9.719 kB / 0.7933 GB, free: 42.8 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.8179, allocations: 0 / 0.7933 GB, free: 42.8 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003514/0.8182, allocations: 478 kB / 0.7937 GB, free: 42.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.8183, allocations: 0 / 0.7937 GB, free: 42.39 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.934e-05/0.8183, allocations: 6.906 kB / 0.7937 GB, free: 42.39 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.8183, allocations: 0 / 0.7937 GB, free: 42.39 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.8183, allocations: 7.875 kB / 0.7938 GB, free: 42.38 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.8183, allocations: 6.656 kB / 0.7938 GB, free: 42.38 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.8183, allocations: 0 / 0.7938 GB, free: 42.38 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.775e-05/0.8184, allocations: 110.6 kB / 0.7939 GB, free: 42.29 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.12e-05/0.8185, allocations: 91.53 kB / 0.794 GB, free: 42.19 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.825e-05/0.8185, allocations: 7.438 kB / 0.794 GB, free: 42.19 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.378e-05/0.8185, allocations: 0 / 0.794 GB, free: 42.19 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.613e-05/0.8186, allocations: 9.5 kB / 0.794 GB, free: 42.19 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-06/0.8186, allocations: 0 / 0.794 GB, free: 42.19 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 7.908e-05/0.8186, allocations: 126.4 kB / 0.7941 GB, free: 42.11 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8187, allocations: 0 / 0.7941 GB, free: 42.11 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003223/0.819, allocations: 56.5 kB / 0.7941 GB, free: 42.1 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 0.0001004/0.8191, allocations: 103.4 kB / 0.7942 GB, free: 42.01 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0001932/0.8193, allocations: 108.8 kB / 0.7943 GB, free: 42.01 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.8193, allocations: 0.8438 kB / 0.7943 GB, free: 42.01 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 2.518e-05/0.8193, allocations: 20.42 kB / 0.7944 GB, free: 42.01 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.8196, allocations: 27.16 kB / 0.7944 GB, free: 42 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004475/0.8201, allocations: 273.6 kB / 0.7947 GB, free: 41.83 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00017/0.8202, allocations: 0.7253 MB / 0.7954 GB, free: 41.13 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 7.11e-05/0.8203, allocations: 28.61 kB / 0.7954 GB, free: 41.13 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.618e-05/0.8204, allocations: 11.28 kB / 0.7954 GB, free: 41.12 MB / 0.6544 GB Notification: Performance of SimCode: time 2.2e-07/0.8204, allocations: 1.688 kB / 0.7954 GB, free: 41.12 MB / 0.6544 GB Notification: Performance of Templates: time 0.003063/0.8234, allocations: 0.8514 MB / 0.7962 GB, free: 41.08 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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)