Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.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.TestImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",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.001211/0.001211, 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.001296/0.001296, allocations: 198.6 kB / 16.26 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.196/1.196, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001967/0.001967, allocations: 290.8 kB / 290.3 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8997/0.8997, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001709/0.001709, allocations: 94.92 kB / 0.5948 GB, free: 28.15 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1447, allocations: 86.98 MB / 0.6797 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.005786/0.1506, allocations: 4.863 MB / 0.6845 GB, free: 12.09 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003592/0.1542, allocations: 2.44 MB / 0.6869 GB, free: 9.645 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004327/0.1546, allocations: 23.81 kB / 0.6869 GB, free: 9.621 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00109/0.1558, allocations: 362.5 kB / 0.6872 GB, free: 9.266 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009592/0.1567, allocations: 414 kB / 0.6876 GB, free: 8.859 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007651/0.1575, allocations: 346.3 kB / 0.688 GB, free: 8.523 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009655/0.1585, allocations: 0.9135 MB / 0.6889 GB, free: 7.609 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005698/0.1591, allocations: 394.4 kB / 0.6892 GB, free: 7.219 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004583/0.1595, allocations: 346.5 kB / 0.6896 GB, free: 6.879 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004348/0.16, allocations: 358.5 kB / 0.6899 GB, free: 6.527 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.73e-05/0.1601, allocations: 36 kB / 0.6899 GB, free: 6.492 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005863/0.1606, allocations: 403.1 kB / 0.6903 GB, free: 6.098 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000172/0.1608, allocations: 183.4 kB / 0.6905 GB, free: 5.918 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002968/0.1611, allocations: 318.2 kB / 0.6908 GB, free: 5.605 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008805/0.162, allocations: 0.9032 MB / 0.6917 GB, free: 4.699 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.162, allocations: 4 kB / 0.6917 GB, free: 4.695 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.162, allocations: 0 / 0.6917 GB, free: 4.695 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.587e-06/0.1621, allocations: 0 / 0.6917 GB, free: 4.695 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.00115/0.1632, allocations: 0.9385 MB / 0.6926 GB, free: 3.707 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.1633, allocations: 8.031 kB / 0.6926 GB, free: 3.699 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.003e-05/0.1633, allocations: 94.69 kB / 0.6927 GB, free: 3.598 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001151/0.1645, allocations: 195.9 kB / 0.6929 GB, free: 3.406 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005631/0.1651, allocations: 498.3 kB / 0.6934 GB, free: 2.883 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.1651, allocations: 33.31 kB / 0.6934 GB, free: 2.848 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.725e-05/0.1652, allocations: 52.27 kB / 0.6934 GB, free: 2.797 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009142/0.1661, allocations: 0.8407 MB / 0.6943 GB, free: 1.828 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.1661, allocations: 7.938 kB / 0.6943 GB, free: 1.82 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.705e-05/0.1662, allocations: 27.98 kB / 0.6943 GB, free: 1.793 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.903e-05/0.1663, allocations: 68.95 kB / 0.6944 GB, free: 1.727 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000724/0.167, allocations: 0.5695 MB / 0.6949 GB, free: 1.156 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003605/0.1706, allocations: 5.647 MB / 0.7004 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005641/0.1712, allocations: 466.2 kB / 0.7009 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002672/0.1715, allocations: 220.7 kB / 0.7011 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.074e-05/0.1715, allocations: 8 kB / 0.7011 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.99e-05/0.1715, allocations: 34.56 kB / 0.7011 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=32): time 1.683e-06/0.1715, allocations: 4 kB / 0.7011 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.002228/0.1738, allocations: 1.509 MB / 0.7026 GB, free: 8.754 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.9e-05/0.1738, allocations: 55.69 kB / 0.7027 GB, free: 8.688 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004268/0.1742, allocations: 495 kB / 0.7031 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.625e-05/0.1743, allocations: 29.7 kB / 0.7032 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001871/0.1745, allocations: 354.8 kB / 0.7035 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.052e-05/0.1746, allocations: 118.3 kB / 0.7036 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001301/0.1747, allocations: 118.2 kB / 0.7037 GB, free: 7.566 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.1748, allocations: 362.8 kB / 0.7041 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002552/0.1751, allocations: 197.2 kB / 0.7043 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003725/0.1755, allocations: 447.3 kB / 0.7047 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006984/0.1762, allocations: 0.6882 MB / 0.7054 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.1762, allocations: 11.98 kB / 0.7054 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001121/0.1773, allocations: 0.7979 MB / 0.7062 GB, free: 4.82 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.1773, allocations: 10.19 kB / 0.7062 GB, free: 4.812 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.1773, allocations: 12.12 kB / 0.7062 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004307/0.1778, allocations: 156.1 kB / 0.7063 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004041/0.1782, allocations: 119.8 kB / 0.7064 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002831/0.181, allocations: 4.348 MB / 0.7107 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003298/0.1814, allocations: 35.97 kB / 0.7107 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.615e-05/0.1814, allocations: 24 kB / 0.7107 GB, free: 15.69 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (66): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002124/0.1816, allocations: 222.9 kB / 0.711 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.718e-05/0.1817, allocations: 59.33 kB / 0.711 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009183/0.1826, allocations: 0.5967 MB / 0.7116 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.1827, allocations: 4 kB / 0.7116 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1827, allocations: 4 kB / 0.7116 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.1827, allocations: 0 / 0.7116 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001572/0.1843, allocations: 1.271 MB / 0.7128 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1843, allocations: 4.219 kB / 0.7128 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002397/0.1845, allocations: 51.95 kB / 0.7129 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000375/0.1849, allocations: 144.1 kB / 0.713 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.507e-05/0.1849, allocations: 11.94 kB / 0.713 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002766/0.1877, allocations: 4.333 MB / 0.7173 GB, free: 8.441 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1877, allocations: 3.938 kB / 0.7173 GB, free: 8.438 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008682/0.1886, allocations: 0.7121 MB / 0.718 GB, free: 7.672 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001703/0.1888, allocations: 168.3 kB / 0.7181 GB, free: 7.488 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.043e-05/0.1888, allocations: 12 kB / 0.7181 GB, free: 7.477 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002522/0.1891, allocations: 23.97 kB / 0.7182 GB, free: 7.453 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.278e-05/0.1892, allocations: 27.91 kB / 0.7182 GB, free: 7.426 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.83e-05/0.1892, allocations: 8 kB / 0.7182 GB, free: 7.418 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003003/0.1895, allocations: 334.8 kB / 0.7185 GB, free: 7.094 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1895, allocations: 0 / 0.7185 GB, free: 7.094 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005495/0.1901, allocations: 144 kB / 0.7187 GB, free: 6.953 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 simulation (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001148/0.1912, allocations: 1.258 MB / 0.7199 GB, free: 5.629 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001293/0.1925, allocations: 1.076 MB / 0.7209 GB, free: 4.473 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1925, allocations: 0 / 0.7209 GB, free: 4.473 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0007548/0.1933, allocations: 0.7377 MB / 0.7217 GB, free: 3.656 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009048/0.1942, allocations: 212.8 kB / 0.7219 GB, free: 3.457 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005648/0.1999, allocations: 5.405 MB / 0.7271 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000394/0.2003, allocations: 0.898 MB / 0.728 GB, free: 12.74 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003203/0.2006, allocations: 117.3 kB / 0.7281 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002224/0.2008, allocations: 191.4 kB / 0.7283 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of SimCode: time 3.41e-07/0.2008, allocations: 0 / 0.7283 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.592/3.793, allocations: 12.55 MB / 0.7406 GB, free: 212 kB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002609/3.793, allocations: 251.3 kB / 0.7408 GB, free: 15.95 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.279/6.072, allocations: 0 / 0.7408 GB, free: 15.95 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_TestImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1)