Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_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.001353/0.001354, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.002422/0.002422, allocations: 187.4 kB / 16.25 MB, free: 6.145 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.756/1.756, allocations: 205.1 MB / 222.1 MB, free: 4.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.737/1.737, allocations: 251.7 MB / 0.5089 GB, free: 3.316 MB / 414.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.001339/0.001339, allocations: 67.91 kB / 0.6218 GB, free: 1.859 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6308/0.6322, allocations: 104.7 MB / 0.724 GB, free: 13.12 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005783/0.638, allocations: 3.115 MB / 0.727 GB, free: 9.992 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003062/0.6411, allocations: 1.711 MB / 0.7287 GB, free: 8.27 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001487/0.6413, allocations: 4 kB / 0.7287 GB, free: 8.266 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001074/0.6425, allocations: 323 kB / 0.729 GB, free: 7.949 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005305/0.643, allocations: 187.3 kB / 0.7292 GB, free: 7.766 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006462/0.6437, allocations: 171.6 kB / 0.7294 GB, free: 7.598 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0005213/0.6442, allocations: 319 kB / 0.7297 GB, free: 7.285 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004698/0.6447, allocations: 278.7 kB / 0.7299 GB, free: 7.016 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001955/0.6449, allocations: 135.6 kB / 0.7301 GB, free: 6.883 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000331/0.6452, allocations: 167.4 kB / 0.7302 GB, free: 6.719 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.351e-05/0.6453, allocations: 20 kB / 0.7302 GB, free: 6.699 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004313/0.6457, allocations: 239.5 kB / 0.7305 GB, free: 6.465 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001325/0.6458, allocations: 103.7 kB / 0.7306 GB, free: 6.363 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001648/0.646, allocations: 123.5 kB / 0.7307 GB, free: 6.242 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0006615/0.6467, allocations: 442.6 kB / 0.7311 GB, free: 5.809 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.6467, allocations: 0 / 0.7311 GB, free: 5.809 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.215e-06/0.6467, allocations: 0 / 0.7311 GB, free: 5.809 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.875e-06/0.6467, allocations: 4 kB / 0.7311 GB, free: 5.805 MB / 0.545 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.00118/0.6479, allocations: 0.542 MB / 0.7316 GB, free: 5.215 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/0.648, allocations: 12.03 kB / 0.7317 GB, free: 5.203 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000861/0.6488, allocations: 92.55 kB / 0.7317 GB, free: 5.113 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.6492, allocations: 255.8 kB / 0.732 GB, free: 4.824 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.232e-05/0.6492, allocations: 20.8 kB / 0.732 GB, free: 4.801 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.6493, allocations: 32.5 kB / 0.732 GB, free: 4.77 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000621/0.65, allocations: 381.1 kB / 0.7324 GB, free: 4.379 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.65, allocations: 0 / 0.7324 GB, free: 4.379 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.329e-05/0.65, allocations: 4 kB / 0.7324 GB, free: 4.375 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001077/0.6501, allocations: 28.42 kB / 0.7324 GB, free: 4.348 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004715/0.6506, allocations: 317.4 kB / 0.7327 GB, free: 4.039 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002155/0.6528, allocations: 1.521 MB / 0.7342 GB, free: 2.363 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004475/0.6532, allocations: 242.3 kB / 0.7345 GB, free: 2.117 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/0.6534, allocations: 116.8 kB / 0.7346 GB, free: 2 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001651/0.6536, allocations: 85.09 kB / 0.7346 GB, free: 1.898 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.073e-05/0.6536, allocations: 34.56 kB / 0.7347 GB, free: 1.855 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 1.213e-06/0.6536, allocations: 0 / 0.7347 GB, free: 1.855 MB / 0.545 GB Notification: Performance of matching and sorting (n=19): time 0.001359/0.655, allocations: 0.7915 MB / 0.7355 GB, free: 1.016 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.6552, allocations: 59.41 kB / 0.7355 GB, free: 0.9453 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002058/0.6554, allocations: 188 kB / 0.7357 GB, free: 0.7539 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.344e-05/0.6554, allocations: 33.7 kB / 0.7357 GB, free: 0.7148 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.6556, allocations: 159.8 kB / 0.7359 GB, free: 0.5547 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.543e-05/0.6556, allocations: 67.02 kB / 0.7359 GB, free: 500 kB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.782e-05/0.6557, allocations: 53.69 kB / 0.736 GB, free: 440 kB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.00016/0.6559, allocations: 330.8 kB / 0.7363 GB, free: 100 kB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002854/0.6562, allocations: 116 kB / 0.7364 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002299/0.6564, allocations: 174.1 kB / 0.7366 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004259/0.6569, allocations: 295 kB / 0.7369 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.6569, allocations: 0 / 0.7369 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008126/0.6577, allocations: 417.3 kB / 0.7373 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.6577, allocations: 4.188 kB / 0.7373 GB, free: 15.06 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.6577, allocations: 8 kB / 0.7373 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004607/0.6582, allocations: 92.77 kB / 0.7374 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002727/0.6585, allocations: 55.89 kB / 0.7374 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00212/0.6606, allocations: 1.883 MB / 0.7393 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002325/0.6609, allocations: 19.95 kB / 0.7393 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.338e-05/0.6609, allocations: 12 kB / 0.7393 GB, free: 12.85 MB / 0.5606 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002149/0.6611, allocations: 157.8 kB / 0.7394 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.386e-05/0.6612, allocations: 15.81 kB / 0.7395 GB, free: 12.67 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005052/0.6617, allocations: 299.4 kB / 0.7397 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.6617, allocations: 0 / 0.7397 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.6617, allocations: 4 kB / 0.7397 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.6617, allocations: 3.938 kB / 0.7397 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009979/0.6627, allocations: 0.7029 MB / 0.7404 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.6627, allocations: 3.984 kB / 0.7404 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000296/0.663, allocations: 51.97 kB / 0.7405 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.333e-06/0.6631, allocations: 3.984 kB / 0.7405 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.615e-05/0.6631, allocations: 15.88 kB / 0.7405 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.6631, allocations: 3.938 kB / 0.7405 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.247e-06/0.6631, allocations: 4 kB / 0.7405 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007069/0.6638, allocations: 0.5106 MB / 0.741 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001274/0.664, allocations: 120.9 kB / 0.7411 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.601e-05/0.664, allocations: 8 kB / 0.7411 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001814/0.6642, allocations: 7.984 kB / 0.7411 GB, free: 10.83 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.171e-05/0.6642, allocations: 15.98 kB / 0.7412 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.6643, allocations: 7.938 kB / 0.7412 GB, free: 10.81 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001474/0.6644, allocations: 148 kB / 0.7413 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6644, allocations: 0 / 0.7413 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003955/0.6648, allocations: 68.06 kB / 0.7414 GB, free: 10.6 MB / 0.5606 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 (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.0002194/0.6651, allocations: 111.2 kB / 0.7415 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008124/0.6659, allocations: 444.7 kB / 0.7419 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.6659, allocations: 8.375 kB / 0.7419 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001822/0.6661, allocations: 119.8 kB / 0.742 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004084/0.6665, allocations: 40.48 kB / 0.7421 GB, free: 9.867 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.6678, allocations: 0.7282 MB / 0.7428 GB, free: 9.109 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005001/0.6683, allocations: 0.7714 MB / 0.7435 GB, free: 8.312 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001847/0.6685, allocations: 57.91 kB / 0.7436 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.692e-05/0.6686, allocations: 19.44 kB / 0.7436 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of SimCode: time 1.683e-06/0.6686, allocations: 0 / 0.7436 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of Templates: time 0.007284/0.6759, allocations: 2.798 MB / 0.7463 GB, free: 5.461 MB / 0.5606 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)