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.001003/0.001003, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007843/0.007844, allocations: 170.1 kB / 16.26 MB, free: 6.676 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.27/1.27, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001727/0.001727, allocations: 270.2 kB / 291.7 MB, free: 1.867 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8979/0.8979, allocations: 169.5 MB / 0.5004 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003977/0.0003977, allocations: 15.14 kB / 0.5988 GB, free: 27.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1381/0.1385, allocations: 88.55 MB / 0.6852 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.00519/0.1437, allocations: 5.062 MB / 0.6902 GB, free: 9.855 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00349/0.1472, allocations: 2.58 MB / 0.6927 GB, free: 7.277 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002212/0.1475, allocations: 23.81 kB / 0.6927 GB, free: 7.254 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002428/0.1477, allocations: 108.1 kB / 0.6928 GB, free: 7.148 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007267/0.1484, allocations: 381.7 kB / 0.6932 GB, free: 6.777 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007342/0.1492, allocations: 361.5 kB / 0.6935 GB, free: 6.43 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00109/0.1503, allocations: 1.255 MB / 0.6948 GB, free: 5.172 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001163/0.1515, allocations: 0.7875 MB / 0.6955 GB, free: 4.359 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003642/0.1518, allocations: 306.6 kB / 0.6958 GB, free: 4.059 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004503/0.1523, allocations: 382.4 kB / 0.6962 GB, free: 3.684 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.289e-05/0.1524, allocations: 24 kB / 0.6962 GB, free: 3.66 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006697/0.153, allocations: 435 kB / 0.6966 GB, free: 3.234 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002086/0.1533, allocations: 223.3 kB / 0.6968 GB, free: 3.016 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002898/0.1536, allocations: 340 kB / 0.6972 GB, free: 2.676 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008333/0.1544, allocations: 0.9575 MB / 0.6981 GB, free: 1.715 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1544, allocations: 4 kB / 0.6981 GB, free: 1.711 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1544, allocations: 0 / 0.6981 GB, free: 1.711 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.1544, allocations: 0 / 0.6981 GB, free: 1.711 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.001245/0.1557, allocations: 0.8375 MB / 0.6989 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.1557, allocations: 15.97 kB / 0.6989 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001078/0.1558, allocations: 102.7 kB / 0.699 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001288/0.1571, allocations: 195.8 kB / 0.6992 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006486/0.1578, allocations: 490.5 kB / 0.6997 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.149e-05/0.1578, allocations: 37.36 kB / 0.6997 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001456/0.158, allocations: 52.55 kB / 0.6998 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.159, allocations: 0.8322 MB / 0.7006 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.562e-05/0.1591, allocations: 7.938 kB / 0.7006 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.467e-05/0.1591, allocations: 27.98 kB / 0.7006 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001723/0.1593, allocations: 64.94 kB / 0.7007 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007905/0.1601, allocations: 0.5736 MB / 0.7013 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003744/0.1638, allocations: 4.597 MB / 0.7057 GB, free: 9.375 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004192/0.1643, allocations: 295.2 kB / 0.706 GB, free: 9.078 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002809/0.1646, allocations: 225.3 kB / 0.7062 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.1646, allocations: 4.281 kB / 0.7062 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.178e-05/0.1646, allocations: 34.84 kB / 0.7063 GB, free: 8.809 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=33): time 1.563e-06/0.1646, allocations: 4 kB / 0.7063 GB, free: 8.805 MB / 0.4981 GB Notification: Performance of matching and sorting (n=40): time 0.005106/0.1698, allocations: 2.643 MB / 0.7089 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.927e-05/0.1698, allocations: 55.41 kB / 0.7089 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004119/0.1702, allocations: 461.9 kB / 0.7094 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.279e-05/0.1703, allocations: 29.7 kB / 0.7094 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001895/0.1704, allocations: 343.6 kB / 0.7097 GB, free: 5.129 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.54e-05/0.1705, allocations: 142 kB / 0.7098 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.189e-05/0.1706, allocations: 49.7 kB / 0.7099 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001132/0.1707, allocations: 366.8 kB / 0.7102 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003262/0.1711, allocations: 237 kB / 0.7105 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004151/0.1715, allocations: 410.4 kB / 0.7109 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007807/0.1723, allocations: 0.6779 MB / 0.7115 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1723, allocations: 0 / 0.7115 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001531/0.1738, allocations: 0.9213 MB / 0.7124 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.1739, allocations: 8 kB / 0.7124 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.1739, allocations: 4 kB / 0.7124 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007274/0.1746, allocations: 222.7 kB / 0.7126 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004805/0.1751, allocations: 115.8 kB / 0.7128 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004295/0.1794, allocations: 4.93 MB / 0.7176 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003798/0.1798, allocations: 31.97 kB / 0.7176 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.671e-05/0.1798, allocations: 20 kB / 0.7176 GB, free: 12.44 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.0002484/0.1801, allocations: 233.5 kB / 0.7178 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.35e-05/0.1802, allocations: 55.48 kB / 0.7179 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001456/0.1816, allocations: 0.785 MB / 0.7187 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1817, allocations: 4 kB / 0.7187 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.1817, allocations: 4 kB / 0.7187 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.1817, allocations: 0 / 0.7187 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002195/0.1839, allocations: 1.494 MB / 0.7201 GB, free: 9.754 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.1839, allocations: 4 kB / 0.7201 GB, free: 9.75 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003585/0.1843, allocations: 71.88 kB / 0.7202 GB, free: 9.68 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006447/0.1849, allocations: 202.6 kB / 0.7204 GB, free: 9.473 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.896e-05/0.185, allocations: 8 kB / 0.7204 GB, free: 9.465 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004418/0.1894, allocations: 4.881 MB / 0.7252 GB, free: 4.188 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.1894, allocations: 3.938 kB / 0.7252 GB, free: 4.184 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001768/0.1912, allocations: 1.135 MB / 0.7263 GB, free: 3 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002208/0.1914, allocations: 168.3 kB / 0.7264 GB, free: 2.816 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.346e-05/0.1915, allocations: 11.98 kB / 0.7265 GB, free: 2.805 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003192/0.1918, allocations: 27.97 kB / 0.7265 GB, free: 2.777 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.351e-05/0.1919, allocations: 35.89 kB / 0.7265 GB, free: 2.742 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.67e-05/0.1919, allocations: 12 kB / 0.7265 GB, free: 2.73 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003387/0.1923, allocations: 306.9 kB / 0.7268 GB, free: 2.434 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2e-07/0.1923, allocations: 4 kB / 0.7268 GB, free: 2.43 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007128/0.193, allocations: 172.1 kB / 0.727 GB, free: 2.262 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.002001/0.195, allocations: 1.704 MB / 0.7286 GB, free: 0.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001544/0.1966, allocations: 1.004 MB / 0.7296 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/0.1966, allocations: 0 / 0.7296 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0009272/0.1975, allocations: 0.6799 MB / 0.7303 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009905/0.1985, allocations: 173.8 kB / 0.7305 GB, free: 14.56 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007435/0.206, allocations: 5.967 MB / 0.7363 GB, free: 8.305 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005632/0.2066, allocations: 0.9455 MB / 0.7372 GB, free: 7.332 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003817/0.2069, allocations: 113 kB / 0.7373 GB, free: 7.223 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000254/0.2072, allocations: 207.4 kB / 0.7375 GB, free: 7.02 MB / 0.5294 GB Notification: Performance of SimCode: time 9.21e-07/0.2072, allocations: 4 kB / 0.7375 GB, free: 7.016 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02818/0.2354, allocations: 13.27 MB / 0.7505 GB, free: 10.07 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001744/0.2356, allocations: 245.1 kB / 0.7507 GB, free: 9.816 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.835/2.071, allocations: 0 / 0.7507 GB, free: 9.816 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)