Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001146/0.001146, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001242/0.001242, allocations: 191.8 kB / 16.14 MB, free: 6.688 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.454/1.454, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.866/2.866, allocations: 472.6 MB / 0.7447 GB, free: 4.906 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 63.28 kB / 0.9113 GB, free: 33.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3814/0.3827, allocations: 159.9 MB / 1.068 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004249/0.387, allocations: 2.556 MB / 1.07 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001377/0.3884, allocations: 0.7867 MB / 1.071 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.3885, allocations: 4 kB / 1.071 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001198/0.3897, allocations: 0.5104 MB / 1.071 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002513/0.39, allocations: 95.66 kB / 1.071 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002914/0.3903, allocations: 99.83 kB / 1.071 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003694/0.3907, allocations: 291.2 kB / 1.072 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002644/0.3909, allocations: 113.9 kB / 1.072 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.987e-05/0.391, allocations: 71.77 kB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002311/0.3913, allocations: 95.64 kB / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.505e-05/0.3913, allocations: 12 kB / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002429/0.3915, allocations: 139.7 kB / 1.072 GB, free: 6.117 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.183e-05/0.3916, allocations: 51.83 kB / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.28e-05/0.3917, allocations: 67.67 kB / 1.072 GB, free: 6 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002945/0.392, allocations: 231.5 kB / 1.072 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.392, allocations: 0 / 1.072 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.012e-06/0.3921, allocations: 0 / 1.072 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.3921, allocations: 0 / 1.072 GB, free: 5.773 MB / 0.8262 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.0007774/0.3928, allocations: 447.3 kB / 1.073 GB, free: 5.285 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.3929, allocations: 12.03 kB / 1.073 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000407/0.3933, allocations: 52.64 kB / 1.073 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002314/0.3935, allocations: 208.1 kB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.357e-05/0.3936, allocations: 24.52 kB / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.442e-05/0.3936, allocations: 8.375 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003871/0.394, allocations: 241.1 kB / 1.073 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.394, allocations: 4 kB / 1.073 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.086e-05/0.394, allocations: 4 kB / 1.073 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.502e-05/0.3941, allocations: 12.28 kB / 1.073 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002394/0.3943, allocations: 152.6 kB / 1.074 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001291/0.3956, allocations: 1.13 MB / 1.075 GB, free: 3.266 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.896e-05/0.3957, allocations: 38.56 kB / 1.075 GB, free: 3.219 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.816e-05/0.3958, allocations: 20.94 kB / 1.075 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.504e-05/0.3958, allocations: 4 kB / 1.075 GB, free: 3.191 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.3958, allocations: 30.56 kB / 1.075 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 1.243e-06/0.3958, allocations: 0 / 1.075 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4): time 0.0002798/0.3961, allocations: 85.45 kB / 1.075 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/0.3962, allocations: 51.41 kB / 1.075 GB, free: 3 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002128/0.3964, allocations: 175 kB / 1.075 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.465e-05/0.3964, allocations: 25.7 kB / 1.075 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.849e-05/0.3965, allocations: 143.4 kB / 1.075 GB, free: 2.645 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.3965, allocations: 23.73 kB / 1.075 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001373/0.3967, allocations: 29.72 kB / 1.075 GB, free: 2.586 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.3968, allocations: 318.8 kB / 1.076 GB, free: 2.266 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.903e-05/0.3968, allocations: 28.84 kB / 1.076 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.397, allocations: 93.44 kB / 1.076 GB, free: 2.109 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001366/0.3971, allocations: 129.2 kB / 1.076 GB, free: 1.949 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.3972, allocations: 0 / 1.076 GB, free: 1.949 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002654/0.3974, allocations: 129.5 kB / 1.076 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.3974, allocations: 13.39 kB / 1.076 GB, free: 1.805 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.3975, allocations: 0 / 1.076 GB, free: 1.805 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.3975, allocations: 7.938 kB / 1.076 GB, free: 1.797 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.3976, allocations: 23.94 kB / 1.076 GB, free: 1.773 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.3976, allocations: 11.92 kB / 1.076 GB, free: 1.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.845e-05/0.3977, allocations: 23.75 kB / 1.076 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.064e-05/0.3977, allocations: 4 kB / 1.076 GB, free: 1.734 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001474/0.3979, allocations: 116.1 kB / 1.076 GB, free: 1.617 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.242e-05/0.398, allocations: 101 kB / 1.076 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001228/0.3981, allocations: 117.3 kB / 1.076 GB, free: 1.34 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.112e-06/0.3981, allocations: 4 kB / 1.076 GB, free: 1.336 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001806/0.3983, allocations: 133.3 kB / 1.076 GB, free: 1.199 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.292e-06/0.3983, allocations: 4 kB / 1.076 GB, free: 1.195 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.287e-06/0.3983, allocations: 4 kB / 1.077 GB, free: 1.191 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.387e-06/0.3983, allocations: 4 kB / 1.077 GB, free: 1.188 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.317e-05/0.3984, allocations: 27.92 kB / 1.077 GB, free: 1.16 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.3984, allocations: 12.19 kB / 1.077 GB, free: 1.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.633e-05/0.3985, allocations: 12 kB / 1.077 GB, free: 1.137 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.642e-06/0.3985, allocations: 4 kB / 1.077 GB, free: 1.133 MB / 0.8262 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 9.709e-05/0.3986, allocations: 192.8 kB / 1.077 GB, free: 0.9375 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.057e-05/0.3986, allocations: 11.81 kB / 1.077 GB, free: 0.9258 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.738e-05/0.3987, allocations: 16.92 kB / 1.077 GB, free: 0.9023 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.3987, allocations: 3.938 kB / 1.077 GB, free: 0.8984 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.3987, allocations: 0 / 1.077 GB, free: 0.8984 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3987, allocations: 288 / 1.077 GB, free: 0.8984 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004226/0.3991, allocations: 473.2 kB / 1.077 GB, free: 376 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3991, allocations: 0 / 1.077 GB, free: 376 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.415e-05/0.3992, allocations: 7.938 kB / 1.077 GB, free: 368 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.3992, allocations: 7.984 kB / 1.077 GB, free: 360 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.266e-06/0.3992, allocations: 0 / 1.077 GB, free: 360 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.04e-06/0.3992, allocations: 7.984 kB / 1.077 GB, free: 352 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3992, allocations: 4.125 kB / 1.077 GB, free: 348 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001189/0.3993, allocations: 107.5 kB / 1.077 GB, free: 212 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.024e-05/0.3994, allocations: 92.91 kB / 1.077 GB, free: 100 kB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.056e-05/0.3994, allocations: 4 kB / 1.077 GB, free: 96 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.91e-05/0.3995, allocations: 12 kB / 1.077 GB, free: 84 kB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.838e-05/0.3995, allocations: 3.938 kB / 1.077 GB, free: 80 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.3995, allocations: 7.938 kB / 1.077 GB, free: 72 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001262/0.3996, allocations: 120.9 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3996, allocations: 0 / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003382/0.4, allocations: 51.84 kB / 1.078 GB, free: 15.9 MB / 0.8419 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.0001959/0.4002, allocations: 103.2 kB / 1.078 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002121/0.4004, allocations: 111.6 kB / 1.078 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4004, allocations: 4 kB / 1.078 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.404e-05/0.4004, allocations: 12 kB / 1.078 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002903/0.4007, allocations: 31.25 kB / 1.078 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006075/0.4014, allocations: 323.1 kB / 1.078 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003948/0.4018, allocations: 0.7163 MB / 1.079 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.067e-05/0.4019, allocations: 32.61 kB / 1.079 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.973e-05/0.4019, allocations: 11.44 kB / 1.079 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of SimCode: time 2.9e-07/0.4019, allocations: 0 / 1.079 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of Templates: time 0.003318/0.4052, allocations: 0.8113 MB / 1.08 GB, free: 13.7 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_1.6_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_1.6_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_1.6_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_1.6_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)