Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.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.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008084/0.0008083, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001058/0.001058, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.389/1.389, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.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.757/1.757, allocations: 292.7 MB / 0.5499 GB, free: 14.55 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.0005092/0.0005094, allocations: 14.41 kB / 0.6737 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2317, allocations: 116.3 MB / 0.7873 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003903/0.2357, allocations: 2.661 MB / 0.7899 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002752/0.2385, allocations: 1.607 MB / 0.7915 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001852/0.2387, allocations: 7.938 kB / 0.7915 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001841/0.2389, allocations: 31.72 kB / 0.7915 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0005308/0.2394, allocations: 159.3 kB / 0.7917 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004472/0.2399, allocations: 135.7 kB / 0.7918 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004887/0.2404, allocations: 374.8 kB / 0.7921 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009273/0.2413, allocations: 499.3 kB / 0.7926 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002628/0.2416, allocations: 115.6 kB / 0.7927 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004041/0.242, allocations: 139.5 kB / 0.7929 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.615e-05/0.2421, allocations: 12 kB / 0.7929 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003663/0.2425, allocations: 143.8 kB / 0.793 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001345/0.2426, allocations: 91.75 kB / 0.7931 GB, free: 5.934 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.188e-05/0.2427, allocations: 69.58 kB / 0.7932 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004484/0.2432, allocations: 319.4 kB / 0.7935 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.2432, allocations: 0 / 0.7935 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.054e-06/0.2432, allocations: 0 / 0.7935 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.174e-05/0.2432, allocations: 0 / 0.7935 GB, free: 5.547 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0009379/0.2441, allocations: 0.495 MB / 0.794 GB, free: 5.004 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.2442, allocations: 8.031 kB / 0.794 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006873/0.2449, allocations: 103.6 kB / 0.7941 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003136/0.2452, allocations: 254.7 kB / 0.7943 GB, free: 4.605 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/0.2452, allocations: 16.38 kB / 0.7943 GB, free: 4.586 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.517e-05/0.2453, allocations: 27.98 kB / 0.7943 GB, free: 4.559 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005516/0.2459, allocations: 365 kB / 0.7947 GB, free: 4.18 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/0.2459, allocations: 0 / 0.7947 GB, free: 4.18 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.187e-05/0.246, allocations: 15.98 kB / 0.7947 GB, free: 4.164 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-05/0.2461, allocations: 32.38 kB / 0.7947 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004529/0.2465, allocations: 309.4 kB / 0.795 GB, free: 3.832 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001759/0.2483, allocations: 1.533 MB / 0.7965 GB, free: 2.145 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004101/0.2487, allocations: 222.4 kB / 0.7967 GB, free: 1.918 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001547/0.2489, allocations: 116.8 kB / 0.7969 GB, free: 1.801 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001433/0.249, allocations: 93.09 kB / 0.7969 GB, free: 1.691 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.11e-05/0.2491, allocations: 30.56 kB / 0.797 GB, free: 1.652 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 1.252e-06/0.2491, allocations: 3.938 kB / 0.797 GB, free: 1.648 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19): time 0.001224/0.2503, allocations: 0.7963 MB / 0.7978 GB, free: 0.8047 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/0.2504, allocations: 55.41 kB / 0.7978 GB, free: 0.7383 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001894/0.2505, allocations: 191.2 kB / 0.798 GB, free: 0.543 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.239e-05/0.2506, allocations: 29.7 kB / 0.798 GB, free: 0.5078 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.2507, allocations: 163.8 kB / 0.7982 GB, free: 352 kB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.284e-05/0.2507, allocations: 67.02 kB / 0.7982 GB, free: 284 kB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.546e-05/0.2508, allocations: 4 kB / 0.7982 GB, free: 280 kB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.2509, allocations: 338.8 kB / 0.7986 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001706/0.2511, allocations: 111.9 kB / 0.7987 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000201/0.2513, allocations: 167.7 kB / 0.7988 GB, free: 15.64 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001932/0.2515, allocations: 139.2 kB / 0.799 GB, free: 15.51 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.2515, allocations: 4 kB / 0.799 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006973/0.2522, allocations: 405.9 kB / 0.7994 GB, free: 15.1 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.2522, allocations: 8 kB / 0.7994 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.2523, allocations: 4.125 kB / 0.7994 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004079/0.2527, allocations: 104.8 kB / 0.7995 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002331/0.2529, allocations: 47.91 kB / 0.7995 GB, free: 14.93 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001751/0.2547, allocations: 1.734 MB / 0.8012 GB, free: 13.06 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001903/0.2549, allocations: 16.05 kB / 0.8012 GB, free: 13.05 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.301e-05/0.2549, allocations: 15.98 kB / 0.8012 GB, free: 13.03 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001481/0.2551, allocations: 158.3 kB / 0.8014 GB, free: 12.87 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.332e-05/0.2551, allocations: 19.77 kB / 0.8014 GB, free: 12.85 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004586/0.2556, allocations: 287.3 kB / 0.8017 GB, free: 12.56 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.2556, allocations: 11.95 kB / 0.8017 GB, free: 12.55 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.2556, allocations: 0 / 0.8017 GB, free: 12.55 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.2556, allocations: 3.984 kB / 0.8017 GB, free: 12.55 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008395/0.2565, allocations: 0.7067 MB / 0.8024 GB, free: 11.78 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.2565, allocations: 7.953 kB / 0.8024 GB, free: 11.77 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000275/0.2568, allocations: 55.95 kB / 0.8024 GB, free: 11.71 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-05/0.2568, allocations: 4 kB / 0.8024 GB, free: 11.71 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.2568, allocations: 0 / 0.8024 GB, free: 11.71 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.2568, allocations: 8.062 kB / 0.8025 GB, free: 11.7 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.2568, allocations: 3.938 kB / 0.8025 GB, free: 11.7 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005692/0.2574, allocations: 0.503 MB / 0.803 GB, free: 11.18 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 9.943e-05/0.2575, allocations: 116.9 kB / 0.8031 GB, free: 11.04 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.745e-05/0.2576, allocations: 15.94 kB / 0.8031 GB, free: 11.03 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000163/0.2577, allocations: 7.984 kB / 0.8031 GB, free: 11.02 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.383e-05/0.2578, allocations: 20.05 kB / 0.8031 GB, free: 11 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/0.2578, allocations: 4 kB / 0.8031 GB, free: 11 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001342/0.2579, allocations: 144.1 kB / 0.8032 GB, free: 10.86 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.2e-07/0.258, allocations: 0 / 0.8032 GB, free: 10.86 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003536/0.2583, allocations: 67.94 kB / 0.8033 GB, free: 10.79 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[2]) * 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 (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001664/0.2585, allocations: 107.2 kB / 0.8034 GB, free: 10.67 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0007052/0.2592, allocations: 434.2 kB / 0.8038 GB, free: 10.23 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2592, allocations: 0 / 0.8038 GB, free: 10.23 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001551/0.2594, allocations: 119.9 kB / 0.8039 GB, free: 10.12 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.2598, allocations: 36.62 kB / 0.804 GB, free: 10.08 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001155/0.2609, allocations: 0.7604 MB / 0.8047 GB, free: 9.293 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003408/0.2613, allocations: 0.779 MB / 0.8055 GB, free: 8.484 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001851/0.2615, allocations: 61.88 kB / 0.8055 GB, free: 8.426 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.414e-05/0.2615, allocations: 19.44 kB / 0.8056 GB, free: 8.406 MB / 0.6231 GB Notification: Performance of SimCode: time 2.51e-07/0.2615, allocations: 4 kB / 0.8056 GB, free: 8.402 MB / 0.6231 GB Notification: Performance of Templates: time 0.00571/0.2673, allocations: 2.565 MB / 0.8081 GB, free: 5.855 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) Environment - environmentSimulation: