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.0007866/0.0007866, 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.0008225/0.0008225, 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 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 223.3 MB / 240 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001721/0.00172, allocations: 277.9 kB / 291.4 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9322/0.9322, allocations: 169.5 MB / 0.5 GB, free: 14.21 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000439/0.000439, allocations: 9.906 kB / 0.598 GB, free: 28.16 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1608/0.1612, allocations: 88.55 MB / 0.6845 GB, free: 15.43 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003397/0.1647, allocations: 2.661 MB / 0.6871 GB, free: 12.76 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002244/0.1669, allocations: 1.604 MB / 0.6887 GB, free: 11.16 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.389e-05/0.1671, allocations: 4 kB / 0.6887 GB, free: 11.15 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001494/0.1672, allocations: 35.7 kB / 0.6887 GB, free: 11.12 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003903/0.1676, allocations: 160.6 kB / 0.6888 GB, free: 10.96 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003372/0.168, allocations: 141.5 kB / 0.689 GB, free: 10.82 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003679/0.1683, allocations: 370.9 kB / 0.6893 GB, free: 10.46 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000809/0.1692, allocations: 0.4943 MB / 0.6898 GB, free: 9.945 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001388/0.1693, allocations: 107.5 kB / 0.6899 GB, free: 9.84 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002727/0.1696, allocations: 153.4 kB / 0.6901 GB, free: 9.691 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.723e-05/0.1696, allocations: 8 kB / 0.6901 GB, free: 9.684 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000245/0.1699, allocations: 143.8 kB / 0.6902 GB, free: 9.543 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.649e-05/0.17, allocations: 87.77 kB / 0.6903 GB, free: 9.457 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.421e-05/0.17, allocations: 68.39 kB / 0.6904 GB, free: 9.387 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003385/0.1704, allocations: 311.2 kB / 0.6907 GB, free: 9.082 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1704, allocations: 0 / 0.6907 GB, free: 9.082 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1704, allocations: 0 / 0.6907 GB, free: 9.082 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.1704, allocations: 0 / 0.6907 GB, free: 9.082 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.0007507/0.1712, allocations: 0.5113 MB / 0.6912 GB, free: 8.523 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.1712, allocations: 13.75 kB / 0.6912 GB, free: 8.512 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006693/0.1719, allocations: 95.56 kB / 0.6913 GB, free: 8.418 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002834/0.1722, allocations: 246.7 kB / 0.6915 GB, free: 8.137 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.1722, allocations: 13.31 kB / 0.6915 GB, free: 8.125 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.359e-05/0.1723, allocations: 24 kB / 0.6915 GB, free: 8.102 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000548/0.1729, allocations: 374.6 kB / 0.6919 GB, free: 7.711 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.1729, allocations: 1 kB / 0.6919 GB, free: 7.711 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.007e-05/0.1729, allocations: 8 kB / 0.6919 GB, free: 7.703 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-05/0.173, allocations: 32.91 kB / 0.6919 GB, free: 7.672 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004549/0.1735, allocations: 317.4 kB / 0.6922 GB, free: 7.363 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00162/0.1751, allocations: 1.529 MB / 0.6937 GB, free: 5.68 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003983/0.1755, allocations: 226.4 kB / 0.6939 GB, free: 5.449 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.1757, allocations: 112.8 kB / 0.694 GB, free: 5.336 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000125/0.1758, allocations: 89.09 kB / 0.6941 GB, free: 5.23 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.678e-05/0.1759, allocations: 38.5 kB / 0.6942 GB, free: 5.184 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.423e-06/0.1759, allocations: 0 / 0.6942 GB, free: 5.184 MB / 494.1 MB Notification: Performance of matching and sorting (n=19): time 0.001173/0.177, allocations: 0.795 MB / 0.6949 GB, free: 4.34 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/0.1771, allocations: 59.41 kB / 0.695 GB, free: 4.27 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001729/0.1773, allocations: 187.5 kB / 0.6952 GB, free: 4.078 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.239e-05/0.1773, allocations: 25.7 kB / 0.6952 GB, free: 4.047 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.188e-05/0.1774, allocations: 163.8 kB / 0.6954 GB, free: 3.883 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.092e-05/0.1775, allocations: 71.08 kB / 0.6954 GB, free: 3.812 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.698e-05/0.1775, allocations: 8 kB / 0.6954 GB, free: 3.805 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1776, allocations: 326.8 kB / 0.6957 GB, free: 3.477 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001634/0.1778, allocations: 111.9 kB / 0.6959 GB, free: 3.367 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/0.178, allocations: 175 kB / 0.696 GB, free: 3.176 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002064/0.1782, allocations: 133.9 kB / 0.6961 GB, free: 3.047 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-06/0.1782, allocations: 0 / 0.6961 GB, free: 3.047 MB / 494.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000699/0.1789, allocations: 417.4 kB / 0.6965 GB, free: 2.633 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.1789, allocations: 11.95 kB / 0.6966 GB, free: 2.621 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.1789, allocations: 0 / 0.6966 GB, free: 2.621 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003777/0.1793, allocations: 101 kB / 0.6967 GB, free: 2.52 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002376/0.1796, allocations: 51.89 kB / 0.6967 GB, free: 2.469 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001711/0.1813, allocations: 1.742 MB / 0.6984 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001905/0.1815, allocations: 20 kB / 0.6984 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.151e-05/0.1815, allocations: 8 kB / 0.6984 GB, free: 0.5664 MB / 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 (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.0001452/0.1817, allocations: 165.8 kB / 0.6986 GB, free: 404 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.542e-05/0.1817, allocations: 19.77 kB / 0.6986 GB, free: 384 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004721/0.1822, allocations: 289.1 kB / 0.6989 GB, free: 92 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.1822, allocations: 3.953 kB / 0.6989 GB, free: 88 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-06/0.1822, allocations: 0 / 0.6989 GB, free: 88 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.1822, allocations: 0 / 0.6989 GB, free: 88 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008704/0.1831, allocations: 0.712 MB / 0.6996 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.1831, allocations: 0 / 0.6996 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002824/0.1834, allocations: 63.84 kB / 0.6996 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.1834, allocations: 4 kB / 0.6996 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.1834, allocations: 0 / 0.6996 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/0.1835, allocations: 4 kB / 0.6997 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1835, allocations: 0 / 0.6997 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006041/0.1841, allocations: 0.5176 MB / 0.7002 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.1842, allocations: 112.9 kB / 0.7003 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.558e-05/0.1842, allocations: 15.89 kB / 0.7003 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001624/0.1844, allocations: 16.05 kB / 0.7003 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.631e-05/0.1844, allocations: 11.98 kB / 0.7003 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.1845, allocations: 4 kB / 0.7003 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001246/0.1846, allocations: 148.1 kB / 0.7005 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1846, allocations: 0 / 0.7005 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003328/0.1849, allocations: 64 kB / 0.7005 GB, free: 14.32 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 (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.0001269/0.1851, allocations: 111.2 kB / 0.7006 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006462/0.1857, allocations: 418.6 kB / 0.701 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1857, allocations: 0 / 0.701 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001649/0.1859, allocations: 126.2 kB / 0.7011 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003557/0.1863, allocations: 41.83 kB / 0.7012 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001127/0.1874, allocations: 0.7605 MB / 0.7019 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.1877, allocations: 0.7717 MB / 0.7027 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001761/0.1879, allocations: 53.91 kB / 0.7027 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.341e-05/0.188, allocations: 23.42 kB / 0.7027 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.188, allocations: 0 / 0.7027 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of Templates: time 0.005384/0.1934, allocations: 2.567 MB / 0.7053 GB, free: 9.398 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)