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: "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 103.4 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.00131/0.00131, allocations: 197.6 kB / 16.25 MB, free: 6.621 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.22/1.22, allocations: 222.9 MB / 239.9 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001943/0.001943, allocations: 279.2 kB / 290.3 MB, free: 2.027 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8423/0.8423, allocations: 169.2 MB / 0.4978 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001616/0.001616, allocations: 92.22 kB / 0.5948 GB, free: 28.24 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1464, allocations: 86.97 MB / 0.6797 GB, free: 0.9531 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.004158/0.1506, allocations: 3.3 MB / 0.683 GB, free: 13.65 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002427/0.1531, allocations: 1.837 MB / 0.6848 GB, free: 11.81 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.1532, allocations: 7.938 kB / 0.6848 GB, free: 11.8 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007863/0.154, allocations: 283.4 kB / 0.685 GB, free: 11.53 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003515/0.1543, allocations: 193.8 kB / 0.6852 GB, free: 11.34 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005168/0.1549, allocations: 267.5 kB / 0.6855 GB, free: 11.08 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003597/0.1552, allocations: 410.7 kB / 0.6859 GB, free: 10.68 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003442/0.1556, allocations: 224.9 kB / 0.6861 GB, free: 10.46 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001742/0.1558, allocations: 163.4 kB / 0.6862 GB, free: 10.3 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002831/0.1561, allocations: 203.3 kB / 0.6864 GB, free: 10.1 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.565e-05/0.1561, allocations: 24 kB / 0.6864 GB, free: 10.07 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002847/0.1564, allocations: 239.5 kB / 0.6867 GB, free: 9.84 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.1565, allocations: 127.6 kB / 0.6868 GB, free: 9.715 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001249/0.1566, allocations: 147.3 kB / 0.6869 GB, free: 9.57 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004255/0.1571, allocations: 474.5 kB / 0.6874 GB, free: 9.105 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1571, allocations: 0 / 0.6874 GB, free: 9.105 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1571, allocations: 0 / 0.6874 GB, free: 9.105 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.1571, allocations: 0 / 0.6874 GB, free: 9.105 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.0009389/0.158, allocations: 0.6004 MB / 0.688 GB, free: 8.457 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.1581, allocations: 12.03 kB / 0.688 GB, free: 8.445 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.225e-05/0.1581, allocations: 62.72 kB / 0.6881 GB, free: 8.375 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006909/0.1588, allocations: 92.41 kB / 0.6881 GB, free: 8.285 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002741/0.1591, allocations: 280.4 kB / 0.6884 GB, free: 7.969 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.1592, allocations: 24.92 kB / 0.6884 GB, free: 7.945 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.1593, allocations: 32.5 kB / 0.6885 GB, free: 7.914 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005645/0.1598, allocations: 441.1 kB / 0.6889 GB, free: 7.449 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.1599, allocations: 0 / 0.6889 GB, free: 7.449 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.351e-05/0.1599, allocations: 15.98 kB / 0.6889 GB, free: 7.434 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000139/0.16, allocations: 40.52 kB / 0.6889 GB, free: 7.395 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004723/0.1605, allocations: 349.9 kB / 0.6893 GB, free: 7.051 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002092/0.1626, allocations: 2.203 MB / 0.6914 GB, free: 4.652 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003853/0.163, allocations: 270.4 kB / 0.6917 GB, free: 4.379 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001926/0.1632, allocations: 156.8 kB / 0.6918 GB, free: 4.223 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.1632, allocations: 4 kB / 0.6918 GB, free: 4.219 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.928e-05/0.1633, allocations: 34.56 kB / 0.6919 GB, free: 4.176 MB / 494.1 MB Notification: Performance of pre-optimization done (n=22): time 1.292e-06/0.1633, allocations: 4 kB / 0.6919 GB, free: 4.172 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.001599/0.1649, allocations: 1.06 MB / 0.6929 GB, free: 3.047 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.312e-05/0.1649, allocations: 55.41 kB / 0.693 GB, free: 2.98 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000252/0.1652, allocations: 252.9 kB / 0.6932 GB, free: 2.727 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.425e-05/0.1652, allocations: 29.7 kB / 0.6932 GB, free: 2.691 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.1654, allocations: 188 kB / 0.6934 GB, free: 2.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.701e-05/0.1654, allocations: 82.75 kB / 0.6935 GB, free: 2.418 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.1655, allocations: 77.67 kB / 0.6936 GB, free: 2.336 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1657, allocations: 326.8 kB / 0.6939 GB, free: 2.008 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002119/0.1659, allocations: 151.9 kB / 0.694 GB, free: 1.859 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002644/0.1661, allocations: 249.5 kB / 0.6943 GB, free: 1.578 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004718/0.1666, allocations: 398.9 kB / 0.6946 GB, free: 1.156 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.1666, allocations: 7.938 kB / 0.6946 GB, free: 1.148 MB / 494.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001008/0.1676, allocations: 0.5859 MB / 0.6952 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.1677, allocations: 4 kB / 0.6952 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.1677, allocations: 4 kB / 0.6952 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006425/0.1683, allocations: 196.9 kB / 0.6954 GB, free: 360 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002645/0.1686, allocations: 67.83 kB / 0.6955 GB, free: 292 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002824/0.1714, allocations: 2.488 MB / 0.6979 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002968/0.1717, allocations: 19.98 kB / 0.6979 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.312e-05/0.1718, allocations: 12 kB / 0.6979 GB, free: 13.62 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.0002366/0.172, allocations: 170.3 kB / 0.6981 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.811e-05/0.1721, allocations: 27.78 kB / 0.6981 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000568/0.1727, allocations: 365.1 kB / 0.6985 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.1727, allocations: 4 kB / 0.6985 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.1727, allocations: 0 / 0.6985 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.1727, allocations: 0 / 0.6985 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.1738, allocations: 0.8102 MB / 0.6993 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.1738, allocations: 0 / 0.6993 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003981/0.1742, allocations: 83.94 kB / 0.6993 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1743, allocations: 0 / 0.6993 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.747e-05/0.1743, allocations: 8 kB / 0.6994 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.1743, allocations: 0 / 0.6994 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.1743, allocations: 4 kB / 0.6994 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007016/0.175, allocations: 0.6084 MB / 0.6999 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.1751, allocations: 128.8 kB / 0.7001 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.099e-05/0.1752, allocations: 8 kB / 0.7001 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002085/0.1754, allocations: 15.98 kB / 0.7001 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.721e-05/0.1755, allocations: 23.84 kB / 0.7001 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/0.1755, allocations: 11.94 kB / 0.7001 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001643/0.1757, allocations: 176.5 kB / 0.7003 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1757, allocations: 0 / 0.7003 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003878/0.176, allocations: 88 kB / 0.7004 GB, free: 11 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.001052/0.1771, allocations: 1.154 MB / 0.7015 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009862/0.1781, allocations: 0.5762 MB / 0.7021 GB, free: 9.23 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1781, allocations: 0 / 0.7021 GB, free: 9.23 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001942/0.1783, allocations: 147.8 kB / 0.7022 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004337/0.1788, allocations: 54.53 kB / 0.7023 GB, free: 9.039 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00468/0.1834, allocations: 3.758 MB / 0.7059 GB, free: 5.129 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.1838, allocations: 0.7912 MB / 0.7067 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002111/0.184, allocations: 82.88 kB / 0.7068 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001346/0.1841, allocations: 87.41 kB / 0.7069 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of SimCode: time 3.3e-07/0.1842, allocations: 0 / 0.7069 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2295/0.4136, allocations: 6.643 MB / 0.7134 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000337/0.414, allocations: 239.7 kB / 0.7136 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.806/2.22, allocations: 3.938 kB / 0.7136 GB, free: 13.48 MB / 0.5137 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1)