Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",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.001506/0.001506, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001167/0.001166, allocations: 193.2 kB / 16.53 MB, free: 6.391 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.33/1.33, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002096/0.002096, allocations: 275.2 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9456/0.9456, allocations: 169.3 MB / 0.4982 GB, free: 13.85 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001865/0.001865, allocations: 93.11 kB / 0.5954 GB, free: 28.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1317, allocations: 86.99 MB / 0.6803 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.006963/0.1387, allocations: 5.443 MB / 0.6856 GB, free: 11.12 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004119/0.1429, allocations: 2.626 MB / 0.6882 GB, free: 8.484 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004569/0.1433, allocations: 23.88 kB / 0.6882 GB, free: 8.461 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001774/0.1452, allocations: 0.6729 MB / 0.6889 GB, free: 7.785 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009822/0.1461, allocations: 405.7 kB / 0.6892 GB, free: 7.387 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009276/0.1471, allocations: 397.6 kB / 0.6896 GB, free: 7 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001055/0.1482, allocations: 0.9475 MB / 0.6906 GB, free: 6.051 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006958/0.1489, allocations: 466.5 kB / 0.691 GB, free: 5.594 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005842/0.1495, allocations: 374.6 kB / 0.6914 GB, free: 5.227 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006843/0.1501, allocations: 402.4 kB / 0.6917 GB, free: 4.832 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000132/0.1503, allocations: 48 kB / 0.6918 GB, free: 4.785 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007462/0.151, allocations: 359.3 kB / 0.6921 GB, free: 4.434 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002982/0.1514, allocations: 255.3 kB / 0.6924 GB, free: 4.184 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004032/0.1518, allocations: 350.2 kB / 0.6927 GB, free: 3.84 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001119/0.1529, allocations: 0.9578 MB / 0.6936 GB, free: 2.879 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1529, allocations: 3.938 kB / 0.6936 GB, free: 2.875 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1529, allocations: 0 / 0.6936 GB, free: 2.875 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.168e-05/0.153, allocations: 0 / 0.6936 GB, free: 2.875 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001948/0.1549, allocations: 0.966 MB / 0.6946 GB, free: 1.855 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.155, allocations: 16.02 kB / 0.6946 GB, free: 1.84 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001336/0.1551, allocations: 94.69 kB / 0.6947 GB, free: 1.738 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001446/0.1566, allocations: 199.8 kB / 0.6949 GB, free: 1.543 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007136/0.1573, allocations: 482.6 kB / 0.6953 GB, free: 1.035 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/0.1573, allocations: 37.36 kB / 0.6954 GB, free: 1 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001601/0.1575, allocations: 60.44 kB / 0.6954 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/0.1586, allocations: 0.8322 MB / 0.6962 GB, free: 32 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.799e-05/0.1587, allocations: 11.92 kB / 0.6963 GB, free: 20 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.592e-05/0.1588, allocations: 28.06 kB / 0.6963 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001924/0.159, allocations: 68.89 kB / 0.6964 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000857/0.1598, allocations: 0.5697 MB / 0.6969 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004136/0.164, allocations: 4.585 MB / 0.7014 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004377/0.1644, allocations: 295.3 kB / 0.7017 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002922/0.1647, allocations: 229.2 kB / 0.7019 GB, free: 9.891 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.713e-05/0.1648, allocations: 4.281 kB / 0.7019 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.1648, allocations: 34.84 kB / 0.7019 GB, free: 9.844 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=33): time 1.694e-06/0.1648, allocations: 0 / 0.7019 GB, free: 9.844 MB / 0.4981 GB Notification: Performance of matching and sorting (n=40): time 0.005373/0.1702, allocations: 2.627 MB / 0.7045 GB, free: 7.09 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.1702, allocations: 59.39 kB / 0.7045 GB, free: 7.02 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000448/0.1707, allocations: 461.9 kB / 0.705 GB, free: 6.555 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.42e-05/0.1707, allocations: 33.7 kB / 0.705 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.1709, allocations: 343.6 kB / 0.7053 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.171, allocations: 141.9 kB / 0.7055 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/0.1712, allocations: 106.2 kB / 0.7056 GB, free: 5.922 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.1713, allocations: 358.8 kB / 0.7059 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000343/0.1717, allocations: 241 kB / 0.7062 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004372/0.1721, allocations: 412 kB / 0.7065 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008184/0.1729, allocations: 0.6779 MB / 0.7072 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.173, allocations: 4 kB / 0.7072 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001596/0.1746, allocations: 0.9132 MB / 0.7081 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.1746, allocations: 8.656 kB / 0.7081 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.447e-06/0.1746, allocations: 4 kB / 0.7081 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007467/0.1754, allocations: 226.4 kB / 0.7083 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004916/0.1759, allocations: 115.8 kB / 0.7084 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004788/0.1807, allocations: 5.348 MB / 0.7137 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000404/0.1811, allocations: 27.97 kB / 0.7137 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.227e-05/0.1811, allocations: 24 kB / 0.7137 GB, free: 13 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002714/0.1814, allocations: 230.3 kB / 0.7139 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.1815, allocations: 59.28 kB / 0.714 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001475/0.183, allocations: 0.7736 MB / 0.7147 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.183, allocations: 4 kB / 0.7148 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.183, allocations: 8 kB / 0.7148 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.183, allocations: 3.984 kB / 0.7148 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00225/0.1853, allocations: 1.486 MB / 0.7162 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.1853, allocations: 0 / 0.7162 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003849/0.1857, allocations: 71.89 kB / 0.7163 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006559/0.1864, allocations: 210.6 kB / 0.7165 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.061e-05/0.1864, allocations: 11.94 kB / 0.7165 GB, free: 10.03 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004488/0.1909, allocations: 5.278 MB / 0.7217 GB, free: 4.332 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.1909, allocations: 4.062 kB / 0.7217 GB, free: 4.328 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001668/0.1926, allocations: 1.132 MB / 0.7228 GB, free: 3.148 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002227/0.1928, allocations: 168.3 kB / 0.7229 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.856e-05/0.1929, allocations: 12 kB / 0.7229 GB, free: 2.953 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003213/0.1932, allocations: 28.03 kB / 0.723 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.657e-05/0.1933, allocations: 31.95 kB / 0.723 GB, free: 2.895 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.762e-05/0.1934, allocations: 12 kB / 0.723 GB, free: 2.883 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003453/0.1937, allocations: 318.8 kB / 0.7233 GB, free: 2.574 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.964e-06/0.1937, allocations: 0 / 0.7233 GB, free: 2.574 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006513/0.1944, allocations: 171.9 kB / 0.7235 GB, free: 2.406 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[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 (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001898/0.1963, allocations: 1.696 MB / 0.7251 GB, free: 0.6484 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001672/0.198, allocations: 1.068 MB / 0.7262 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.198, allocations: 0 / 0.7262 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0009043/0.1989, allocations: 0.6721 MB / 0.7268 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008402/0.1998, allocations: 184.5 kB / 0.727 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007211/0.207, allocations: 5.686 MB / 0.7326 GB, free: 8.684 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000482/0.2075, allocations: 0.9454 MB / 0.7335 GB, free: 7.711 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003474/0.2078, allocations: 117 kB / 0.7336 GB, free: 7.598 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002408/0.2081, allocations: 207.4 kB / 0.7338 GB, free: 7.395 MB / 0.5294 GB Notification: Performance of SimCode: time 5.2e-07/0.2081, allocations: 0 / 0.7338 GB, free: 7.395 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.515/1.724, allocations: 13.95 MB / 0.7474 GB, free: 9.73 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/12.38, allocations: 6.453 kB / 0.7474 GB, free: 9.727 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1)