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.001018/0.001017, 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.00105/0.00105, allocations: 195.3 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.271/1.271, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001948/0.001948, allocations: 286.4 kB / 290.2 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9223/0.9223, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001627/0.001627, allocations: 90.36 kB / 0.5946 GB, free: 28.24 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1675/0.1691, allocations: 86.98 MB / 0.6796 GB, free: 1.078 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.006478/0.1756, allocations: 5.469 MB / 0.6849 GB, free: 11.6 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003926/0.1796, allocations: 2.619 MB / 0.6875 GB, free: 8.973 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003268/0.18, allocations: 19.81 kB / 0.6875 GB, free: 8.953 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001557/0.1816, allocations: 0.6451 MB / 0.6881 GB, free: 8.309 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008138/0.1824, allocations: 382.2 kB / 0.6885 GB, free: 7.934 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008362/0.1832, allocations: 355.3 kB / 0.6888 GB, free: 7.586 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001021/0.1843, allocations: 1.248 MB / 0.69 GB, free: 6.336 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006532/0.1849, allocations: 464.2 kB / 0.6905 GB, free: 5.879 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003812/0.1853, allocations: 326.6 kB / 0.6908 GB, free: 5.559 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004448/0.1858, allocations: 410.4 kB / 0.6912 GB, free: 5.156 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.714e-05/0.1858, allocations: 32 kB / 0.6912 GB, free: 5.125 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007014/0.1865, allocations: 447.1 kB / 0.6916 GB, free: 4.688 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002086/0.1868, allocations: 231.4 kB / 0.6919 GB, free: 4.461 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000286/0.1871, allocations: 326.2 kB / 0.6922 GB, free: 4.141 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008827/0.1879, allocations: 0.9772 MB / 0.6931 GB, free: 3.16 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.188, allocations: 0 / 0.6931 GB, free: 3.16 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.188, allocations: 0 / 0.6931 GB, free: 3.16 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.188, allocations: 0 / 0.6931 GB, free: 3.16 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.001538/0.1895, allocations: 0.9698 MB / 0.6941 GB, free: 2.141 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.1896, allocations: 12.03 kB / 0.6941 GB, free: 2.129 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001047/0.1897, allocations: 102.6 kB / 0.6942 GB, free: 2.02 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001318/0.191, allocations: 199.8 kB / 0.6944 GB, free: 1.824 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006646/0.1917, allocations: 486.5 kB / 0.6948 GB, free: 1.312 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.112e-05/0.1917, allocations: 45.36 kB / 0.6949 GB, free: 1.27 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001427/0.1919, allocations: 56.45 kB / 0.6949 GB, free: 1.215 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.193, allocations: 0.8245 MB / 0.6957 GB, free: 316 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.227e-05/0.193, allocations: 11.94 kB / 0.6957 GB, free: 304 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.497e-05/0.1931, allocations: 23.98 kB / 0.6958 GB, free: 280 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000182/0.1932, allocations: 64.95 kB / 0.6958 GB, free: 216 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000842/0.1941, allocations: 0.5697 MB / 0.6964 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004077/0.1982, allocations: 4.581 MB / 0.7009 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004515/0.1987, allocations: 307.2 kB / 0.7012 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003002/0.199, allocations: 221.3 kB / 0.7014 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.282e-05/0.199, allocations: 4.281 kB / 0.7014 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.199, allocations: 42.84 kB / 0.7014 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=33): time 2.916e-06/0.199, allocations: 0 / 0.7014 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of matching and sorting (n=40): time 0.005314/0.2044, allocations: 2.623 MB / 0.704 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.839e-05/0.2044, allocations: 55.41 kB / 0.704 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004652/0.2049, allocations: 457.9 kB / 0.7045 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.251e-05/0.2049, allocations: 37.7 kB / 0.7045 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002091/0.2052, allocations: 343.6 kB / 0.7048 GB, free: 6.469 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.2053, allocations: 145.9 kB / 0.705 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/0.2054, allocations: 102.2 kB / 0.7051 GB, free: 6.219 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001354/0.2056, allocations: 362.8 kB / 0.7054 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003274/0.2059, allocations: 233 kB / 0.7056 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004363/0.2063, allocations: 414.4 kB / 0.706 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007929/0.2072, allocations: 0.6817 MB / 0.7067 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2072, allocations: 0 / 0.7067 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001542/0.2087, allocations: 0.9171 MB / 0.7076 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/0.2087, allocations: 8 kB / 0.7076 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.2088, allocations: 4 kB / 0.7076 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007681/0.2095, allocations: 227 kB / 0.7078 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004857/0.21, allocations: 115.8 kB / 0.7079 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004441/0.2145, allocations: 4.934 MB / 0.7127 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004498/0.2149, allocations: 31.97 kB / 0.7128 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.066e-05/0.215, allocations: 27.98 kB / 0.7128 GB, free: 13.71 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.0003126/0.2153, allocations: 229.6 kB / 0.713 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.746e-05/0.2154, allocations: 55.34 kB / 0.7131 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001427/0.2168, allocations: 0.7733 MB / 0.7138 GB, free: 12.63 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.2169, allocations: 8 kB / 0.7138 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2169, allocations: 192 / 0.7138 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.2169, allocations: 0 / 0.7138 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002287/0.2192, allocations: 1.494 MB / 0.7153 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.2192, allocations: 4 kB / 0.7153 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003638/0.2196, allocations: 72.09 kB / 0.7154 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006595/0.2202, allocations: 202.4 kB / 0.7156 GB, free: 10.76 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.546e-05/0.2203, allocations: 16 kB / 0.7156 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00428/0.2246, allocations: 4.873 MB / 0.7203 GB, free: 5.477 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.2246, allocations: 3.938 kB / 0.7203 GB, free: 5.473 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.2263, allocations: 1.139 MB / 0.7215 GB, free: 4.285 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000223/0.2265, allocations: 172.4 kB / 0.7216 GB, free: 4.098 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.831e-05/0.2266, allocations: 8 kB / 0.7216 GB, free: 4.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003092/0.2269, allocations: 27.91 kB / 0.7216 GB, free: 4.062 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.745e-05/0.227, allocations: 43.83 kB / 0.7217 GB, free: 4.02 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.672e-05/0.227, allocations: 16.06 kB / 0.7217 GB, free: 4.004 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003351/0.2274, allocations: 310.9 kB / 0.722 GB, free: 3.703 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2274, allocations: 0 / 0.722 GB, free: 3.703 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006545/0.2281, allocations: 164 kB / 0.7222 GB, free: 3.543 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.001936/0.23, allocations: 1.696 MB / 0.7238 GB, free: 1.789 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001512/0.2315, allocations: 1.008 MB / 0.7248 GB, free: 0.7422 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.2315, allocations: 0 / 0.7248 GB, free: 0.7422 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0008729/0.2324, allocations: 0.6837 MB / 0.7255 GB, free: 20 kB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008759/0.2333, allocations: 168 kB / 0.7256 GB, free: 15.85 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007472/0.2408, allocations: 5.901 MB / 0.7314 GB, free: 9.66 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004872/0.2413, allocations: 0.9532 MB / 0.7323 GB, free: 8.68 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0004027/0.2417, allocations: 121 kB / 0.7324 GB, free: 8.562 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002398/0.242, allocations: 211.4 kB / 0.7326 GB, free: 8.355 MB / 0.5294 GB Notification: Performance of SimCode: time 8.61e-07/0.242, allocations: 0 / 0.7326 GB, free: 8.355 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02711/0.2691, allocations: 13.49 MB / 0.7458 GB, free: 11.16 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001963/0.2693, allocations: 239.5 kB / 0.746 GB, free: 10.91 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.876/2.145, allocations: 3.938 kB / 0.746 GB, free: 10.91 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)