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.001352/0.001352, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001594/0.001594, allocations: 192.1 kB / 16.25 MB, free: 6.633 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.455/1.455, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003564/0.003565, allocations: 294.8 kB / 290.4 MB, free: 2.113 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.1/1.1, allocations: 178.6 MB / 0.507 GB, free: 4.688 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002987/0.002988, allocations: 105 kB / 0.6059 GB, free: 25.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.1569, allocations: 89.16 MB / 0.693 GB, free: 4.648 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005118/0.162, allocations: 3.122 MB / 0.696 GB, free: 1.523 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002878/0.1649, allocations: 1.705 MB / 0.6977 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.1651, allocations: 4 kB / 0.6977 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0009975/0.1661, allocations: 307 kB / 0.698 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004897/0.1666, allocations: 207.3 kB / 0.6982 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004458/0.167, allocations: 160.1 kB / 0.6984 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000373/0.1674, allocations: 319 kB / 0.6987 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004753/0.1679, allocations: 272.9 kB / 0.6989 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002012/0.1681, allocations: 139.5 kB / 0.6991 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003093/0.1684, allocations: 159.5 kB / 0.6992 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.521e-05/0.1685, allocations: 23.94 kB / 0.6992 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003967/0.1689, allocations: 255.5 kB / 0.6995 GB, free: 14 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.169, allocations: 95.78 kB / 0.6996 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001416/0.1692, allocations: 123.5 kB / 0.6997 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005362/0.1697, allocations: 434.6 kB / 0.7001 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1697, allocations: 0 / 0.7001 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.453e-06/0.1697, allocations: 0 / 0.7001 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.1697, allocations: 0 / 0.7001 GB, free: 13.36 MB / 0.4981 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.0009806/0.1707, allocations: 0.5497 MB / 0.7006 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.1708, allocations: 16.03 kB / 0.7006 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007569/0.1715, allocations: 96.48 kB / 0.7007 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/0.1719, allocations: 244 kB / 0.701 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.45e-05/0.1719, allocations: 20.75 kB / 0.701 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.846e-05/0.172, allocations: 24.47 kB / 0.701 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006354/0.1727, allocations: 373.2 kB / 0.7014 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.1727, allocations: 8 kB / 0.7014 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.541e-05/0.1727, allocations: 11.98 kB / 0.7014 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000111/0.1729, allocations: 28.36 kB / 0.7014 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005149/0.1734, allocations: 313.5 kB / 0.7017 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001947/0.1753, allocations: 1.529 MB / 0.7032 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004712/0.1758, allocations: 232.7 kB / 0.7034 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001788/0.176, allocations: 116.8 kB / 0.7035 GB, free: 9.559 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001449/0.1762, allocations: 85.09 kB / 0.7036 GB, free: 9.457 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.162e-05/0.1762, allocations: 38.56 kB / 0.7037 GB, free: 9.41 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.343e-06/0.1762, allocations: 0 / 0.7037 GB, free: 9.41 MB / 0.4981 GB Notification: Performance of matching and sorting (n=19): time 0.001349/0.1776, allocations: 0.7896 MB / 0.7044 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/0.1776, allocations: 59.41 kB / 0.7045 GB, free: 8.5 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002006/0.1778, allocations: 195.6 kB / 0.7047 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.008e-05/0.1779, allocations: 29.7 kB / 0.7047 GB, free: 8.266 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.178, allocations: 159.9 kB / 0.7049 GB, free: 8.105 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.83e-05/0.1781, allocations: 67 kB / 0.7049 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.1782, allocations: 61.59 kB / 0.705 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.1784, allocations: 330.8 kB / 0.7053 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001971/0.1786, allocations: 115.9 kB / 0.7054 GB, free: 7.527 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002415/0.1788, allocations: 174.9 kB / 0.7056 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004267/0.1792, allocations: 291.8 kB / 0.7058 GB, free: 7.031 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.1793, allocations: 0 / 0.7058 GB, free: 7.031 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008252/0.1801, allocations: 421.2 kB / 0.7062 GB, free: 6.613 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.1801, allocations: 4 kB / 0.7063 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.1801, allocations: 8 kB / 0.7063 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004438/0.1806, allocations: 96.89 kB / 0.7064 GB, free: 6.504 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002673/0.1809, allocations: 59.89 kB / 0.7064 GB, free: 6.445 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002187/0.183, allocations: 1.867 MB / 0.7082 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002395/0.1833, allocations: 23.91 kB / 0.7083 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.473e-05/0.1833, allocations: 12 kB / 0.7083 GB, free: 4.402 MB / 0.4981 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.0001819/0.1835, allocations: 161.8 kB / 0.7084 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.165e-05/0.1836, allocations: 15.81 kB / 0.7084 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005297/0.1841, allocations: 301.2 kB / 0.7087 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.1841, allocations: 4 kB / 0.7087 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-06/0.1841, allocations: 3.938 kB / 0.7087 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.1841, allocations: 7.938 kB / 0.7087 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009924/0.1851, allocations: 0.7014 MB / 0.7094 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1852, allocations: 3.938 kB / 0.7094 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003162/0.1855, allocations: 59.89 kB / 0.7095 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.1855, allocations: 0 / 0.7095 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.967e-05/0.1855, allocations: 15.92 kB / 0.7095 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.1855, allocations: 0 / 0.7095 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1855, allocations: 0 / 0.7095 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006755/0.1862, allocations: 0.5079 MB / 0.71 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.1864, allocations: 124.8 kB / 0.7101 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.787e-05/0.1864, allocations: 8 kB / 0.7101 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/0.1866, allocations: 11.98 kB / 0.7101 GB, free: 2.383 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.664e-05/0.1867, allocations: 15.92 kB / 0.7102 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.1867, allocations: 4.062 kB / 0.7102 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001507/0.1868, allocations: 156 kB / 0.7103 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.3e-07/0.1868, allocations: 0 / 0.7103 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003668/0.1872, allocations: 60 kB / 0.7104 GB, free: 2.148 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.000163/0.1874, allocations: 107.2 kB / 0.7105 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008095/0.1882, allocations: 442.7 kB / 0.7109 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.1882, allocations: 7.938 kB / 0.7109 GB, free: 1.578 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000185/0.1884, allocations: 119.9 kB / 0.711 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004009/0.1888, allocations: 38.33 kB / 0.711 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.1901, allocations: 0.7211 MB / 0.7117 GB, free: 0.6758 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004431/0.1905, allocations: 0.7753 MB / 0.7125 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001883/0.1907, allocations: 65.84 kB / 0.7126 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.984e-05/0.1908, allocations: 23.44 kB / 0.7126 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of SimCode: time 3.91e-07/0.1908, allocations: 0 / 0.7126 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of Templates: time 0.007101/0.1979, allocations: 2.789 MB / 0.7153 GB, free: 13.01 MB / 0.5137 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)