Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.00143/0.00143, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001632/0.001632, allocations: 194.4 kB / 16.53 MB, free: 6.699 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.306/1.306, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002027/0.002027, allocations: 283 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9406/0.9406, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00167/0.00167, allocations: 100.9 kB / 0.5952 GB, free: 27.68 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.1517, allocations: 86.99 MB / 0.6802 GB, free: 0.6562 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004337/0.1561, allocations: 3.067 MB / 0.6832 GB, free: 13.59 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002477/0.1586, allocations: 1.726 MB / 0.6849 GB, free: 11.86 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.1587, allocations: 4 kB / 0.6849 GB, free: 11.86 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009032/0.1596, allocations: 326.7 kB / 0.6852 GB, free: 11.54 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004185/0.16, allocations: 223.1 kB / 0.6854 GB, free: 11.32 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004031/0.1605, allocations: 179.5 kB / 0.6856 GB, free: 11.14 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003054/0.1608, allocations: 315 kB / 0.6859 GB, free: 10.83 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003511/0.1611, allocations: 240.7 kB / 0.6861 GB, free: 10.6 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001617/0.1613, allocations: 131.5 kB / 0.6862 GB, free: 10.47 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002736/0.1616, allocations: 163.5 kB / 0.6864 GB, free: 10.31 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.773e-05/0.1616, allocations: 20 kB / 0.6864 GB, free: 10.29 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003573/0.162, allocations: 243.4 kB / 0.6866 GB, free: 10.05 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.1621, allocations: 99.77 kB / 0.6867 GB, free: 9.953 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001273/0.1622, allocations: 123.4 kB / 0.6868 GB, free: 9.832 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004358/0.1627, allocations: 418.7 kB / 0.6872 GB, free: 9.422 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1627, allocations: 0 / 0.6872 GB, free: 9.422 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1627, allocations: 8 kB / 0.6873 GB, free: 9.414 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.1627, allocations: 0 / 0.6873 GB, free: 9.414 MB / 494.1 MB 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.0008244/0.1636, allocations: 0.5459 MB / 0.6878 GB, free: 8.82 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.022e-05/0.1636, allocations: 12.03 kB / 0.6878 GB, free: 8.809 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007027/0.1643, allocations: 92.55 kB / 0.6879 GB, free: 8.719 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000285/0.1646, allocations: 255.8 kB / 0.6881 GB, free: 8.43 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.1646, allocations: 20.81 kB / 0.6882 GB, free: 8.41 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.36e-05/0.1647, allocations: 20.56 kB / 0.6882 GB, free: 8.391 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005166/0.1653, allocations: 377.2 kB / 0.6885 GB, free: 8 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.1653, allocations: 3.938 kB / 0.6885 GB, free: 7.996 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.993e-05/0.1653, allocations: 7.984 kB / 0.6885 GB, free: 7.988 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.407e-05/0.1654, allocations: 28.42 kB / 0.6886 GB, free: 7.961 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004398/0.1659, allocations: 309.5 kB / 0.6889 GB, free: 7.66 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001607/0.1675, allocations: 1.525 MB / 0.6904 GB, free: 5.98 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004105/0.1679, allocations: 238.2 kB / 0.6906 GB, free: 5.738 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001534/0.1681, allocations: 120.8 kB / 0.6907 GB, free: 5.617 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001195/0.1682, allocations: 85.09 kB / 0.6908 GB, free: 5.516 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.313e-05/0.1682, allocations: 34.56 kB / 0.6908 GB, free: 5.473 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.342e-06/0.1682, allocations: 3.938 kB / 0.6908 GB, free: 5.469 MB / 494.1 MB Notification: Performance of matching and sorting (n=19): time 0.001174/0.1694, allocations: 0.7909 MB / 0.6916 GB, free: 4.629 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.1695, allocations: 55.41 kB / 0.6916 GB, free: 4.562 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.1696, allocations: 187.8 kB / 0.6918 GB, free: 4.371 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.1697, allocations: 33.7 kB / 0.6919 GB, free: 4.332 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.296e-05/0.1698, allocations: 167.8 kB / 0.692 GB, free: 4.164 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.86e-05/0.1698, allocations: 66.95 kB / 0.6921 GB, free: 4.098 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.9e-05/0.1699, allocations: 53.69 kB / 0.6921 GB, free: 4.039 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.17, allocations: 330.8 kB / 0.6924 GB, free: 3.707 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001764/0.1702, allocations: 123.9 kB / 0.6926 GB, free: 3.586 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.1704, allocations: 170.9 kB / 0.6927 GB, free: 3.398 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003785/0.1708, allocations: 302.8 kB / 0.693 GB, free: 3.086 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.1708, allocations: 0 / 0.693 GB, free: 3.086 MB / 494.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007148/0.1715, allocations: 413.8 kB / 0.6934 GB, free: 2.672 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.1715, allocations: 4 kB / 0.6934 GB, free: 2.668 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.1716, allocations: 4.188 kB / 0.6934 GB, free: 2.664 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003785/0.1719, allocations: 100.7 kB / 0.6935 GB, free: 2.562 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002429/0.1722, allocations: 55.95 kB / 0.6936 GB, free: 2.508 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001809/0.174, allocations: 1.88 MB / 0.6954 GB, free: 500 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002133/0.1742, allocations: 19.95 kB / 0.6954 GB, free: 480 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/0.1743, allocations: 8 kB / 0.6954 GB, free: 472 kB / 494.1 MB 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.0001392/0.1744, allocations: 158.4 kB / 0.6956 GB, free: 304 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.897e-05/0.1745, allocations: 15.81 kB / 0.6956 GB, free: 288 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004661/0.1749, allocations: 309.2 kB / 0.6959 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.175, allocations: 0 / 0.6959 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.175, allocations: 4 kB / 0.6959 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.175, allocations: 7.875 kB / 0.6959 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008177/0.1758, allocations: 0.6951 MB / 0.6966 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.1758, allocations: 4.062 kB / 0.6966 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003005/0.1761, allocations: 63.89 kB / 0.6966 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.1761, allocations: 0 / 0.6966 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.099e-05/0.1762, allocations: 11.92 kB / 0.6967 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.1762, allocations: 0 / 0.6967 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.1762, allocations: 4 kB / 0.6967 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005706/0.1767, allocations: 0.5047 MB / 0.6971 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.1769, allocations: 124.9 kB / 0.6973 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.892e-05/0.1769, allocations: 12 kB / 0.6973 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001769/0.1771, allocations: 11.98 kB / 0.6973 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.11e-05/0.1771, allocations: 15.92 kB / 0.6973 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.1771, allocations: 4 kB / 0.6973 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001251/0.1773, allocations: 144.1 kB / 0.6974 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1773, allocations: 0 / 0.6974 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003375/0.1776, allocations: 67.94 kB / 0.6975 GB, free: 14.2 MB / 0.4981 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.000131/0.1778, allocations: 111.3 kB / 0.6976 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0007037/0.1785, allocations: 450.2 kB / 0.698 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1785, allocations: 0 / 0.698 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001619/0.1787, allocations: 124.2 kB / 0.6982 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003654/0.179, allocations: 38.47 kB / 0.6982 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001058/0.1801, allocations: 0.6195 MB / 0.6988 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000319/0.1804, allocations: 0.7714 MB / 0.6996 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001604/0.1806, allocations: 57.89 kB / 0.6996 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.005e-05/0.1807, allocations: 27.38 kB / 0.6996 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of SimCode: time 2.21e-07/0.1807, allocations: 0 / 0.6996 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of Templates: time 0.005715/0.1864, allocations: 2.803 MB / 0.7024 GB, free: 9.164 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)