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.001263/0.001263, allocations: 107.4 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.00105/0.001051, allocations: 192.7 kB / 16.14 MB, free: 6.703 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.235/1.235, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001974/0.001974, allocations: 278.6 kB / 290.2 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.905/0.905, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 91.89 kB / 0.5946 GB, free: 28.19 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.157, allocations: 86.98 MB / 0.6796 GB, free: 1.059 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.005611/0.1626, allocations: 4.861 MB / 0.6843 GB, free: 12.19 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003413/0.166, allocations: 2.479 MB / 0.6867 GB, free: 9.707 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002045/0.1663, allocations: 15.88 kB / 0.6867 GB, free: 9.691 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009276/0.1672, allocations: 366.4 kB / 0.6871 GB, free: 9.332 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007096/0.1679, allocations: 410.1 kB / 0.6875 GB, free: 8.93 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006282/0.1686, allocations: 346.1 kB / 0.6878 GB, free: 8.594 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008704/0.1694, allocations: 1.12 MB / 0.6889 GB, free: 7.473 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005029/0.1699, allocations: 355.2 kB / 0.6892 GB, free: 7.117 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003081/0.1703, allocations: 306.7 kB / 0.6895 GB, free: 6.816 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003565/0.1706, allocations: 350.4 kB / 0.6899 GB, free: 6.473 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.014e-05/0.1707, allocations: 24 kB / 0.6899 GB, free: 6.449 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006737/0.1714, allocations: 0.495 MB / 0.6904 GB, free: 5.953 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001583/0.1715, allocations: 171.4 kB / 0.6905 GB, free: 5.785 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000249/0.1718, allocations: 298.3 kB / 0.6908 GB, free: 5.492 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007689/0.1726, allocations: 0.8837 MB / 0.6917 GB, free: 4.605 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1726, allocations: 0 / 0.6917 GB, free: 4.605 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1726, allocations: 0 / 0.6917 GB, free: 4.605 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.453e-06/0.1726, allocations: 4 kB / 0.6917 GB, free: 4.602 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.001222/0.1738, allocations: 0.9385 MB / 0.6926 GB, free: 3.613 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.1739, allocations: 12.03 kB / 0.6926 GB, free: 3.602 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.46e-05/0.174, allocations: 94.69 kB / 0.6927 GB, free: 3.5 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001136/0.1751, allocations: 199.9 kB / 0.6929 GB, free: 3.305 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005762/0.1757, allocations: 494.3 kB / 0.6934 GB, free: 2.785 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.913e-05/0.1757, allocations: 33.38 kB / 0.6934 GB, free: 2.75 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.584e-05/0.1758, allocations: 52.2 kB / 0.6935 GB, free: 2.699 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009531/0.1768, allocations: 0.8446 MB / 0.6943 GB, free: 1.727 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.205e-05/0.1768, allocations: 7.938 kB / 0.6943 GB, free: 1.719 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.804e-05/0.1769, allocations: 27.98 kB / 0.6943 GB, free: 1.691 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.976e-05/0.1769, allocations: 60.95 kB / 0.6944 GB, free: 1.633 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007555/0.1777, allocations: 0.5695 MB / 0.6949 GB, free: 1.062 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003765/0.1815, allocations: 5.65 MB / 0.7004 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000584/0.1821, allocations: 454.3 kB / 0.7009 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002807/0.1824, allocations: 228.7 kB / 0.7011 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.508e-05/0.1824, allocations: 3.938 kB / 0.7011 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.262e-05/0.1824, allocations: 38.56 kB / 0.7011 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=32): time 1.403e-06/0.1824, allocations: 0 / 0.7011 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.002261/0.1847, allocations: 1.509 MB / 0.7026 GB, free: 8.664 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/0.1848, allocations: 55.69 kB / 0.7027 GB, free: 8.598 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004286/0.1852, allocations: 495 kB / 0.7031 GB, free: 8.102 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.1852, allocations: 29.7 kB / 0.7032 GB, free: 8.066 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.1854, allocations: 366.8 kB / 0.7035 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.74e-05/0.1855, allocations: 114.3 kB / 0.7036 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/0.1856, allocations: 106.2 kB / 0.7037 GB, free: 7.48 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.1858, allocations: 370.8 kB / 0.7041 GB, free: 7.109 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002703/0.186, allocations: 197.1 kB / 0.7043 GB, free: 6.914 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004033/0.1865, allocations: 451.3 kB / 0.7047 GB, free: 6.359 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007045/0.1872, allocations: 0.6882 MB / 0.7054 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.1872, allocations: 4 kB / 0.7054 GB, free: 5.551 MB / 0.4981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001137/0.1883, allocations: 0.8011 MB / 0.7062 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.1884, allocations: 8 kB / 0.7062 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.1884, allocations: 16.84 kB / 0.7062 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000457/0.1888, allocations: 152.1 kB / 0.7063 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004081/0.1893, allocations: 123.8 kB / 0.7064 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002744/0.192, allocations: 4.044 MB / 0.7104 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003132/0.1923, allocations: 31.92 kB / 0.7104 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.689e-05/0.1924, allocations: 35.98 kB / 0.7105 GB, free: 15.91 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.0002242/0.1926, allocations: 207 kB / 0.7107 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.852e-05/0.1927, allocations: 59.34 kB / 0.7107 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009346/0.1936, allocations: 0.6009 MB / 0.7113 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.1936, allocations: 4 kB / 0.7113 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1937, allocations: 3.938 kB / 0.7113 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.1937, allocations: 3.984 kB / 0.7113 GB, free: 15 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001587/0.1953, allocations: 1.259 MB / 0.7125 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.1953, allocations: 8.219 kB / 0.7125 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002315/0.1955, allocations: 51.89 kB / 0.7126 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000378/0.1959, allocations: 140.2 kB / 0.7127 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.244e-05/0.1959, allocations: 8 kB / 0.7127 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002635/0.1986, allocations: 4.036 MB / 0.7167 GB, free: 9.004 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.1986, allocations: 0 / 0.7167 GB, free: 9.004 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008722/0.1995, allocations: 0.7038 MB / 0.7174 GB, free: 8.246 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001672/0.1996, allocations: 176.2 kB / 0.7175 GB, free: 8.055 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.047e-05/0.1997, allocations: 11.98 kB / 0.7175 GB, free: 8.043 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002325/0.1999, allocations: 23.97 kB / 0.7176 GB, free: 8.02 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.405e-05/0.2, allocations: 23.97 kB / 0.7176 GB, free: 7.996 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-05/0.2, allocations: 12 kB / 0.7176 GB, free: 7.984 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002952/0.2003, allocations: 334.8 kB / 0.7179 GB, free: 7.66 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2003, allocations: 0 / 0.7179 GB, free: 7.66 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005588/0.2009, allocations: 148 kB / 0.7181 GB, free: 7.516 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.001131/0.2021, allocations: 1.265 MB / 0.7193 GB, free: 6.188 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001201/0.2033, allocations: 1.04 MB / 0.7203 GB, free: 5.066 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.2033, allocations: 0 / 0.7203 GB, free: 5.066 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0007366/0.204, allocations: 0.7339 MB / 0.721 GB, free: 4.254 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008694/0.2049, allocations: 178.1 kB / 0.7212 GB, free: 4.078 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005704/0.2106, allocations: 5.392 MB / 0.7265 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004068/0.211, allocations: 0.9019 MB / 0.7273 GB, free: 13.37 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003264/0.2114, allocations: 125.3 kB / 0.7275 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000236/0.2116, allocations: 191.4 kB / 0.7276 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of SimCode: time 2.2e-07/0.2116, allocations: 0 / 0.7276 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02437/0.236, allocations: 12.19 MB / 0.7395 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001702/0.2362, allocations: 248.6 kB / 0.7398 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.845/2.081, allocations: 0 / 0.7398 GB, free: 0.9023 MB / 0.5294 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)