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.001103/0.001103, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001249/0.001249, allocations: 191.8 kB / 16.25 MB, free: 6.633 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.295/1.295, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001956/0.001956, allocations: 286.4 kB / 290.3 MB, free: 2.16 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8888/0.8888, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 102.7 kB / 0.5948 GB, free: 28.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1313, allocations: 86.98 MB / 0.6797 GB, free: 0.9531 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.005964/0.1373, allocations: 5.474 MB / 0.6851 GB, free: 11.47 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003367/0.1407, allocations: 2.593 MB / 0.6876 GB, free: 8.871 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002023/0.1409, allocations: 19.88 kB / 0.6876 GB, free: 8.852 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001489/0.1424, allocations: 0.6524 MB / 0.6883 GB, free: 8.199 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006483/0.1431, allocations: 382.1 kB / 0.6886 GB, free: 7.824 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007067/0.1438, allocations: 353.7 kB / 0.689 GB, free: 7.48 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007631/0.1446, allocations: 0.9475 MB / 0.6899 GB, free: 6.531 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005888/0.1452, allocations: 0.5141 MB / 0.6904 GB, free: 6.016 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003408/0.1455, allocations: 370.5 kB / 0.6908 GB, free: 5.652 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004023/0.1459, allocations: 418.4 kB / 0.6912 GB, free: 5.242 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.151e-05/0.146, allocations: 48 kB / 0.6912 GB, free: 5.195 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004437/0.1464, allocations: 359.3 kB / 0.6915 GB, free: 4.844 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001963/0.1467, allocations: 259.3 kB / 0.6918 GB, free: 4.59 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002543/0.1469, allocations: 346.2 kB / 0.6921 GB, free: 4.25 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007985/0.1477, allocations: 0.9967 MB / 0.6931 GB, free: 3.25 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.1477, allocations: 4 kB / 0.6931 GB, free: 3.246 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.1477, allocations: 0 / 0.6931 GB, free: 3.246 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.1477, allocations: 0 / 0.6931 GB, free: 3.246 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.001271/0.149, allocations: 0.9659 MB / 0.694 GB, free: 2.227 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/0.1491, allocations: 8.031 kB / 0.6941 GB, free: 2.219 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001007/0.1492, allocations: 102.7 kB / 0.6942 GB, free: 2.109 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001252/0.1504, allocations: 191.8 kB / 0.6943 GB, free: 1.922 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005453/0.151, allocations: 486.5 kB / 0.6948 GB, free: 1.41 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.151, allocations: 41.36 kB / 0.6948 GB, free: 1.371 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.1512, allocations: 56.45 kB / 0.6949 GB, free: 1.316 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009906/0.1522, allocations: 0.8245 MB / 0.6957 GB, free: 424 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.263e-05/0.1522, allocations: 11.94 kB / 0.6957 GB, free: 412 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.133e-05/0.1522, allocations: 27.98 kB / 0.6957 GB, free: 384 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001718/0.1524, allocations: 64.94 kB / 0.6958 GB, free: 316 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007673/0.1532, allocations: 0.5775 MB / 0.6964 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00359/0.1568, allocations: 4.581 MB / 0.7008 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004029/0.1572, allocations: 295.2 kB / 0.7011 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002644/0.1575, allocations: 229.3 kB / 0.7013 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.838e-05/0.1575, allocations: 4.281 kB / 0.7013 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.288e-05/0.1575, allocations: 34.84 kB / 0.7014 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=33): time 1.724e-06/0.1576, allocations: 4 kB / 0.7014 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=40): time 0.005053/0.1626, allocations: 2.627 MB / 0.7039 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.1627, allocations: 55.41 kB / 0.704 GB, free: 7.406 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004044/0.1631, allocations: 457.9 kB / 0.7044 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.392e-05/0.1631, allocations: 37.7 kB / 0.7045 GB, free: 6.902 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000182/0.1633, allocations: 343.6 kB / 0.7048 GB, free: 6.559 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.773e-05/0.1634, allocations: 145.9 kB / 0.7049 GB, free: 6.414 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001445/0.1636, allocations: 102.2 kB / 0.705 GB, free: 6.309 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001202/0.1637, allocations: 362.8 kB / 0.7054 GB, free: 5.945 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003097/0.164, allocations: 240.9 kB / 0.7056 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004025/0.1644, allocations: 408.1 kB / 0.706 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007322/0.1651, allocations: 0.6779 MB / 0.7067 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.1652, allocations: 4 kB / 0.7067 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00149/0.1666, allocations: 0.9137 MB / 0.7076 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.1667, allocations: 12.09 kB / 0.7076 GB, free: 3.543 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.1667, allocations: 8 kB / 0.7076 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007304/0.1674, allocations: 226.3 kB / 0.7078 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004717/0.1679, allocations: 119.8 kB / 0.7079 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004445/0.1724, allocations: 5.34 MB / 0.7131 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004064/0.1728, allocations: 31.97 kB / 0.7131 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.693e-05/0.1728, allocations: 23.94 kB / 0.7132 GB, free: 13.38 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.0002593/0.1731, allocations: 221.6 kB / 0.7134 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.335e-05/0.1732, allocations: 63.34 kB / 0.7134 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001367/0.1746, allocations: 0.7694 MB / 0.7142 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1746, allocations: 8 kB / 0.7142 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1746, allocations: 4 kB / 0.7142 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.1746, allocations: 3.984 kB / 0.7142 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002089/0.1767, allocations: 1.49 MB / 0.7157 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.1767, allocations: 4 kB / 0.7157 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003531/0.1771, allocations: 64.11 kB / 0.7157 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006255/0.1777, allocations: 218.3 kB / 0.7159 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.928e-05/0.1777, allocations: 8.188 kB / 0.7159 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004105/0.1819, allocations: 5.274 MB / 0.7211 GB, free: 4.719 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.1819, allocations: 3.938 kB / 0.7211 GB, free: 4.715 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001524/0.1834, allocations: 1.131 MB / 0.7222 GB, free: 3.535 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001765/0.1836, allocations: 172.3 kB / 0.7224 GB, free: 3.348 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.613e-05/0.1837, allocations: 12.06 kB / 0.7224 GB, free: 3.336 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003049/0.184, allocations: 27.97 kB / 0.7224 GB, free: 3.309 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.57e-05/0.1841, allocations: 36.03 kB / 0.7224 GB, free: 3.273 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.79e-05/0.1841, allocations: 19.94 kB / 0.7225 GB, free: 3.254 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002758/0.1844, allocations: 306.9 kB / 0.7228 GB, free: 2.957 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1844, allocations: 0 / 0.7228 GB, free: 2.957 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005846/0.185, allocations: 168 kB / 0.7229 GB, free: 2.793 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.001771/0.1867, allocations: 1.707 MB / 0.7246 GB, free: 1.023 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001447/0.1882, allocations: 1.053 MB / 0.7256 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1882, allocations: 3.938 kB / 0.7256 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.000837/0.1891, allocations: 0.6877 MB / 0.7263 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008071/0.1899, allocations: 181.3 kB / 0.7265 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00667/0.1966, allocations: 5.907 MB / 0.7322 GB, free: 8.836 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004264/0.197, allocations: 0.961 MB / 0.7332 GB, free: 7.848 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003287/0.1973, allocations: 105 kB / 0.7333 GB, free: 7.746 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002321/0.1976, allocations: 211.4 kB / 0.7335 GB, free: 7.539 MB / 0.5294 GB Notification: Performance of SimCode: time 4.71e-07/0.1976, allocations: 0 / 0.7335 GB, free: 7.539 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.136/1.333, allocations: 13.92 MB / 0.7471 GB, free: 9.953 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002225/1.334, allocations: 246.2 kB / 0.7473 GB, free: 9.695 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.847/3.181, allocations: 0 / 0.7473 GB, free: 9.695 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)