Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.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.Loads.Examples.DynamicLoads,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads") translateModel(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001697/0.001697, allocations: 191.8 kB / 16.14 MB, free: 6.707 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.391/1.391, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002461/0.002461, allocations: 290.3 kB / 290.2 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9502/0.9502, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001691/0.001691, allocations: 86.59 kB / 0.5945 GB, free: 28.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1393, allocations: 86.99 MB / 0.6795 GB, free: 1.172 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.00446/0.1438, allocations: 3.294 MB / 0.6827 GB, free: 13.88 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002762/0.1466, allocations: 1.861 MB / 0.6845 GB, free: 12.01 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.1468, allocations: 7.938 kB / 0.6845 GB, free: 12 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008117/0.1476, allocations: 277.1 kB / 0.6848 GB, free: 11.73 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003989/0.148, allocations: 203.2 kB / 0.685 GB, free: 11.54 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005541/0.1486, allocations: 265.8 kB / 0.6852 GB, free: 11.28 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00047/0.149, allocations: 0.5687 MB / 0.6858 GB, free: 10.71 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003587/0.1494, allocations: 189.6 kB / 0.6859 GB, free: 10.53 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001692/0.1496, allocations: 139.5 kB / 0.6861 GB, free: 10.39 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003138/0.1499, allocations: 203.3 kB / 0.6863 GB, free: 10.19 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.882e-05/0.15, allocations: 19.98 kB / 0.6863 GB, free: 10.17 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004052/0.1504, allocations: 287.4 kB / 0.6866 GB, free: 9.891 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001127/0.1505, allocations: 111.7 kB / 0.6867 GB, free: 9.781 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001357/0.1506, allocations: 135.3 kB / 0.6868 GB, free: 9.648 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004565/0.1511, allocations: 474.5 kB / 0.6872 GB, free: 9.184 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.1511, allocations: 0 / 0.6872 GB, free: 9.184 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.1511, allocations: 0 / 0.6872 GB, free: 9.184 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.1511, allocations: 0 / 0.6872 GB, free: 9.184 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001005/0.1521, allocations: 0.6004 MB / 0.6878 GB, free: 8.535 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/0.1522, allocations: 8.031 kB / 0.6878 GB, free: 8.527 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007402/0.1529, allocations: 96.47 kB / 0.6879 GB, free: 8.434 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003391/0.1533, allocations: 272.5 kB / 0.6882 GB, free: 8.125 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.017e-05/0.1533, allocations: 20.92 kB / 0.6882 GB, free: 8.105 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001582/0.1535, allocations: 36.44 kB / 0.6883 GB, free: 8.07 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006153/0.1541, allocations: 449.1 kB / 0.6887 GB, free: 7.598 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.1541, allocations: 0 / 0.6887 GB, free: 7.598 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.733e-05/0.1542, allocations: 8 kB / 0.6887 GB, free: 7.59 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001374/0.1543, allocations: 36.53 kB / 0.6887 GB, free: 7.555 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000513/0.1548, allocations: 349.9 kB / 0.6891 GB, free: 7.211 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002359/0.1572, allocations: 2.21 MB / 0.6912 GB, free: 4.805 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004195/0.1576, allocations: 266.4 kB / 0.6915 GB, free: 4.535 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002122/0.1578, allocations: 164.8 kB / 0.6916 GB, free: 4.371 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.597e-05/0.1579, allocations: 7.938 kB / 0.6916 GB, free: 4.363 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.004e-05/0.1579, allocations: 30.56 kB / 0.6917 GB, free: 4.324 MB / 494.1 MB Notification: Performance of pre-optimization done (n=22): time 1.373e-06/0.1579, allocations: 0 / 0.6917 GB, free: 4.324 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.001825/0.1597, allocations: 1.055 MB / 0.6927 GB, free: 3.199 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.1598, allocations: 59.34 kB / 0.6927 GB, free: 3.129 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002463/0.16, allocations: 252.8 kB / 0.693 GB, free: 2.875 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.1601, allocations: 33.7 kB / 0.693 GB, free: 2.836 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.1602, allocations: 184 kB / 0.6932 GB, free: 2.648 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.101e-05/0.1603, allocations: 78.84 kB / 0.6933 GB, free: 2.57 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001335/0.1604, allocations: 77.59 kB / 0.6933 GB, free: 2.488 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1605, allocations: 334.8 kB / 0.6937 GB, free: 2.152 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002313/0.1608, allocations: 151.9 kB / 0.6938 GB, free: 2.004 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002898/0.1611, allocations: 241.6 kB / 0.694 GB, free: 1.73 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005057/0.1616, allocations: 395.4 kB / 0.6944 GB, free: 1.312 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.1616, allocations: 7.938 kB / 0.6944 GB, free: 1.305 MB / 494.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001076/0.1627, allocations: 0.5931 MB / 0.695 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.1627, allocations: 8 kB / 0.695 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.1627, allocations: 4 kB / 0.695 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000704/0.1634, allocations: 181 kB / 0.6952 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002809/0.1637, allocations: 67.89 kB / 0.6953 GB, free: 456 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00281/0.1665, allocations: 2.311 MB / 0.6975 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002888/0.1668, allocations: 15.98 kB / 0.6975 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.961e-05/0.1669, allocations: 16 kB / 0.6975 GB, free: 13.97 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 31 * 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,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001564/0.167, allocations: 159.1 kB / 0.6977 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.583e-05/0.1671, allocations: 31.72 kB / 0.6977 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005243/0.1676, allocations: 355.5 kB / 0.6981 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.1677, allocations: 0 / 0.6981 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1677, allocations: 7.984 kB / 0.6981 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1677, allocations: 0 / 0.6981 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001019/0.1687, allocations: 0.8105 MB / 0.6989 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1687, allocations: 0 / 0.6989 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003974/0.1691, allocations: 80 kB / 0.6989 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.1691, allocations: 0 / 0.6989 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.192e-05/0.1692, allocations: 4 kB / 0.6989 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.1692, allocations: 0 / 0.6989 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.1692, allocations: 4 kB / 0.6989 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007172/0.1699, allocations: 0.6174 MB / 0.6995 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001218/0.17, allocations: 136.8 kB / 0.6997 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.296e-05/0.1701, allocations: 4 kB / 0.6997 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.1703, allocations: 15.98 kB / 0.6997 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.016e-05/0.1703, allocations: 11.98 kB / 0.6997 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.1704, allocations: 4 kB / 0.6997 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000202/0.1706, allocations: 184.5 kB / 0.6999 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1706, allocations: 0 / 0.6999 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003886/0.171, allocations: 91.94 kB / 0.7 GB, free: 11.36 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dynRC.q[1],dynRC.q[2],dynRL.psi[1],dynRL.psi[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 (24): * Single equations (assignments): 24 * 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.0001522/0.1711, allocations: 111.2 kB / 0.7001 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008426/0.172, allocations: 0.5256 MB / 0.7006 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.172, allocations: 0.625 kB / 0.7006 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000197/0.1722, allocations: 155.8 kB / 0.7007 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004459/0.1726, allocations: 55.25 kB / 0.7008 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.1741, allocations: 0.948 MB / 0.7017 GB, free: 9.523 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000314/0.1745, allocations: 0.7951 MB / 0.7025 GB, free: 8.703 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002065/0.1747, allocations: 74.91 kB / 0.7026 GB, free: 8.629 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.666e-05/0.1748, allocations: 19.44 kB / 0.7026 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.1748, allocations: 0 / 0.7026 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of Templates: time 0.007075/0.1818, allocations: 3.834 MB / 0.7063 GB, free: 4.797 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1)