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.001471/0.001471, allocations: 112 kB / 16.37 MB, free: 5.539 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.001642/0.001642, allocations: 190.7 kB / 17.31 MB, free: 5.184 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.384/1.384, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.725/1.725, allocations: 292.3 MB / 0.5496 GB, free: 17.52 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.001453/0.001453, allocations: 67.91 kB / 0.6729 GB, free: 5.828 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2106/0.2121, allocations: 114.6 MB / 0.7848 GB, free: 3.156 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004039/0.2162, allocations: 2.5 MB / 0.7872 GB, free: 0.6406 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.3627/0.5789, allocations: 0.7775 MB / 0.788 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001706/0.5791, allocations: 3.5 kB / 0.788 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001163/0.5803, allocations: 0.5721 MB / 0.7885 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002537/0.5806, allocations: 107.8 kB / 0.7887 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002916/0.5809, allocations: 112.6 kB / 0.7888 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002147/0.5811, allocations: 190.6 kB / 0.7889 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003115/0.5814, allocations: 165.1 kB / 0.7891 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 7.724e-05/0.5815, allocations: 83.59 kB / 0.7892 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002055/0.5817, allocations: 86.92 kB / 0.7893 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.084e-05/0.5817, allocations: 16.62 kB / 0.7893 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000161/0.5819, allocations: 107.6 kB / 0.7894 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 5.384e-05/0.582, allocations: 53.52 kB / 0.7894 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.446e-05/0.582, allocations: 85.36 kB / 0.7895 GB, free: 46.65 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.000232/0.5823, allocations: 222.2 kB / 0.7897 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.5823, allocations: 0 / 0.7897 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.693e-06/0.5823, allocations: 0 / 0.7897 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.104e-05/0.5823, allocations: 0 / 0.7897 GB, free: 46.62 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.0004975/0.5828, allocations: 442.5 kB / 0.7901 GB, free: 46.24 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.142e-05/0.5829, allocations: 10.5 kB / 0.7902 GB, free: 46.24 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003496/0.5832, allocations: 44.62 kB / 0.7902 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001832/0.5834, allocations: 224.2 kB / 0.7904 GB, free: 46.03 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.5834, allocations: 9.219 kB / 0.7904 GB, free: 46.03 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.532e-05/0.5835, allocations: 19.91 kB / 0.7904 GB, free: 46.03 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003099/0.5838, allocations: 226.5 kB / 0.7907 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.5838, allocations: 0 / 0.7907 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.032e-05/0.5838, allocations: 7.031 kB / 0.7907 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.161e-05/0.5839, allocations: 16.09 kB / 0.7907 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001914/0.5841, allocations: 147.3 kB / 0.7908 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000765/0.5848, allocations: 1.13 MB / 0.7919 GB, free: 44.98 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 7.077e-05/0.5849, allocations: 37 kB / 0.792 GB, free: 44.96 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.881e-05/0.585, allocations: 25.3 kB / 0.792 GB, free: 44.95 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.18e-05/0.585, allocations: 3.094 kB / 0.792 GB, free: 44.95 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.687e-05/0.585, allocations: 33.56 kB / 0.792 GB, free: 44.91 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=4): time 1.242e-06/0.585, allocations: 3.625 kB / 0.792 GB, free: 44.91 MB / 0.6544 GB Notification: Performance of matching and sorting (n=4): time 0.0001802/0.5852, allocations: 73.5 kB / 0.7921 GB, free: 44.87 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.443e-05/0.5852, allocations: 53.06 kB / 0.7921 GB, free: 44.81 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.5853, allocations: 176.1 kB / 0.7923 GB, free: 44.71 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 7.804e-06/0.5854, allocations: 30.17 kB / 0.7923 GB, free: 44.68 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.261e-05/0.5854, allocations: 147.2 kB / 0.7925 GB, free: 44.56 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.083e-05/0.5854, allocations: 11.69 kB / 0.7925 GB, free: 44.55 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.959e-05/0.5855, allocations: 36.16 kB / 0.7925 GB, free: 44.54 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 4.641e-05/0.5855, allocations: 321.7 kB / 0.7928 GB, free: 44.22 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.172e-05/0.5856, allocations: 32.34 kB / 0.7929 GB, free: 44.21 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.178e-05/0.5856, allocations: 87.86 kB / 0.7929 GB, free: 44.12 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001093/0.5858, allocations: 127.8 kB / 0.7931 GB, free: 44.04 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.5858, allocations: 0 / 0.7931 GB, free: 44.04 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.00016/0.5859, allocations: 134.9 kB / 0.7932 GB, free: 44 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.586, allocations: 8.781 kB / 0.7932 GB, free: 44 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.586, allocations: 2.625 kB / 0.7932 GB, free: 44 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.586, allocations: 8.375 kB / 0.7932 GB, free: 44 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/0.5861, allocations: 28.19 kB / 0.7932 GB, free: 44 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.5861, allocations: 2.625 kB / 0.7932 GB, free: 44 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.522e-05/0.5862, allocations: 17.16 kB / 0.7933 GB, free: 43.99 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.5862, allocations: 6.281 kB / 0.7933 GB, free: 43.99 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 6.95e-05/0.5863, allocations: 123 kB / 0.7934 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.741e-05/0.5863, allocations: 89.09 kB / 0.7935 GB, free: 43.82 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 8.505e-05/0.5864, allocations: 125.1 kB / 0.7936 GB, free: 43.73 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.723e-06/0.5864, allocations: 1.188 kB / 0.7936 GB, free: 43.73 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001543/0.5866, allocations: 132.1 kB / 0.7937 GB, free: 43.7 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 7.183e-06/0.5866, allocations: 6.969 kB / 0.7937 GB, free: 43.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.365e-06/0.5866, allocations: 7.375 kB / 0.7937 GB, free: 43.69 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.407e-06/0.5866, allocations: 3.5 kB / 0.7937 GB, free: 43.69 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.709e-05/0.5867, allocations: 26.52 kB / 0.7938 GB, free: 43.69 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.687e-06/0.5867, allocations: 10.44 kB / 0.7938 GB, free: 43.68 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.896e-05/0.5868, allocations: 19.22 kB / 0.7938 GB, free: 43.68 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.5868, allocations: 5.484 kB / 0.7938 GB, free: 43.68 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 6.145e-05/0.5868, allocations: 190.1 kB / 0.794 GB, free: 43.5 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.764e-05/0.5869, allocations: 10.72 kB / 0.794 GB, free: 43.49 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.978e-05/0.5869, allocations: 12.12 kB / 0.794 GB, free: 43.49 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.5869, allocations: 3.938 kB / 0.794 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.5869, allocations: 0 / 0.794 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.5869, allocations: 4 kB / 0.794 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003166/0.5873, allocations: 479.1 kB / 0.7945 GB, free: 43.07 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.5873, allocations: 0 / 0.7945 GB, free: 43.07 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.081e-05/0.5873, allocations: 10.56 kB / 0.7945 GB, free: 43.07 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.5873, allocations: 0 / 0.7945 GB, free: 43.07 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.265e-06/0.5873, allocations: 3.625 kB / 0.7945 GB, free: 43.07 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.5873, allocations: 7.094 kB / 0.7945 GB, free: 43.07 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.5873, allocations: 1.688 kB / 0.7945 GB, free: 43.07 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.858e-05/0.5874, allocations: 109.1 kB / 0.7946 GB, free: 42.97 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.279e-05/0.5875, allocations: 90.89 kB / 0.7947 GB, free: 42.88 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.5875, allocations: 10.75 kB / 0.7947 GB, free: 42.87 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.424e-05/0.5875, allocations: 0 / 0.7947 GB, free: 42.87 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.422e-05/0.5876, allocations: 3.406 kB / 0.7947 GB, free: 42.87 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.5876, allocations: 3.094 kB / 0.7947 GB, free: 42.87 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 6.948e-05/0.5876, allocations: 124.5 kB / 0.7948 GB, free: 42.8 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5877, allocations: 0 / 0.7948 GB, free: 42.8 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003419/0.588, allocations: 59.84 kB / 0.7949 GB, free: 42.79 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.838e-05/0.5881, allocations: 96.69 kB / 0.795 GB, free: 42.7 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0001871/0.5883, allocations: 117.1 kB / 0.7951 GB, free: 42.69 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.5883, allocations: 0 / 0.7951 GB, free: 42.69 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 2.104e-05/0.5883, allocations: 14.47 kB / 0.7951 GB, free: 42.69 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002785/0.5886, allocations: 20.14 kB / 0.7951 GB, free: 42.69 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004522/0.5891, allocations: 313.7 kB / 0.7954 GB, free: 42.48 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001489/0.5892, allocations: 0.7209 MB / 0.7961 GB, free: 41.79 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.169e-05/0.5893, allocations: 19.72 kB / 0.7961 GB, free: 41.77 MB / 0.6544 GB Notification: Performance of SimCode: time 2.1e-07/0.5893, allocations: 0 / 0.7961 GB, free: 41.77 MB / 0.6544 GB Notification: Performance of Templates: time 0.002707/0.592, allocations: 1.448 MB / 0.7975 GB, free: 41.71 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)