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: translateModel(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") translateModel(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004532/0.004532, allocations: 99.75 kB / 15.73 MB, free: 6.039 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.001079/0.001079, allocations: 191.9 kB / 16.67 MB, free: 5.949 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.29/1.29, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002003/0.002003, allocations: 292.3 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.902/0.902, allocations: 169.2 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001663/0.001663, allocations: 95.8 kB / 0.6814 GB, free: 6.953 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4106/0.4122, allocations: 86.97 MB / 0.7664 GB, free: 3.914 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.008644/0.4209, allocations: 5.459 MB / 0.7717 GB, free: 14.43 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.00419/0.4252, allocations: 2.615 MB / 0.7743 GB, free: 11.8 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002768/0.4255, allocations: 19.88 kB / 0.7743 GB, free: 11.79 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001706/0.4272, allocations: 0.6754 MB / 0.7749 GB, free: 11.11 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0008187/0.428, allocations: 409.7 kB / 0.7753 GB, free: 10.71 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008987/0.429, allocations: 391.1 kB / 0.7757 GB, free: 10.32 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0008876/0.4299, allocations: 0.9474 MB / 0.7766 GB, free: 9.371 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005857/0.4304, allocations: 474.3 kB / 0.7771 GB, free: 8.91 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003848/0.4308, allocations: 378.6 kB / 0.7775 GB, free: 8.539 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004577/0.4313, allocations: 398.4 kB / 0.7778 GB, free: 8.148 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 7.521e-05/0.4314, allocations: 48 kB / 0.7779 GB, free: 8.102 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005644/0.432, allocations: 363.2 kB / 0.7782 GB, free: 7.746 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002243/0.4322, allocations: 243.4 kB / 0.7785 GB, free: 7.508 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003335/0.4325, allocations: 362.1 kB / 0.7788 GB, free: 7.152 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0009613/0.4335, allocations: 0.9707 MB / 0.7797 GB, free: 6.184 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.4335, allocations: 0 / 0.7797 GB, free: 6.184 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.203e-06/0.4335, allocations: 3.938 kB / 0.7798 GB, free: 6.18 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.598e-06/0.4336, allocations: 0 / 0.7798 GB, free: 6.18 MB / 0.545 GB 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.001457/0.435, allocations: 0.9923 MB / 0.7807 GB, free: 5.137 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.4351, allocations: 8.031 kB / 0.7807 GB, free: 5.129 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00131/0.4364, allocations: 196.3 kB / 0.7809 GB, free: 4.938 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006995/0.4371, allocations: 0.5145 MB / 0.7814 GB, free: 4.387 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.426e-05/0.4371, allocations: 41.36 kB / 0.7815 GB, free: 4.344 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001476/0.4373, allocations: 56.56 kB / 0.7815 GB, free: 4.289 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/0.4384, allocations: 0.8302 MB / 0.7823 GB, free: 3.383 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.696e-05/0.4384, allocations: 15.89 kB / 0.7823 GB, free: 3.367 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.305e-05/0.4384, allocations: 19.98 kB / 0.7824 GB, free: 3.348 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001752/0.4386, allocations: 68.94 kB / 0.7824 GB, free: 3.281 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008013/0.4394, allocations: 0.5658 MB / 0.783 GB, free: 2.711 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003899/0.4433, allocations: 4.581 MB / 0.7874 GB, free: 13.78 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004346/0.4438, allocations: 299.1 kB / 0.7877 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002854/0.4441, allocations: 229.3 kB / 0.788 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.774e-05/0.4441, allocations: 288 / 0.788 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.4442, allocations: 38.84 kB / 0.788 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=33): time 1.283e-06/0.4442, allocations: 4 kB / 0.788 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=40): time 0.005296/0.4495, allocations: 2.641 MB / 0.7906 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.498e-05/0.4495, allocations: 55.41 kB / 0.7906 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004433/0.45, allocations: 454 kB / 0.7911 GB, free: 9.91 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.467e-05/0.45, allocations: 37.7 kB / 0.7911 GB, free: 9.867 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002167/0.4502, allocations: 352.5 kB / 0.7914 GB, free: 9.52 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.4503, allocations: 150.8 kB / 0.7916 GB, free: 9.371 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/0.4505, allocations: 106.2 kB / 0.7917 GB, free: 9.258 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.4507, allocations: 362.8 kB / 0.792 GB, free: 8.895 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003438/0.451, allocations: 233 kB / 0.7922 GB, free: 8.668 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004458/0.4515, allocations: 406.4 kB / 0.7926 GB, free: 8.199 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008053/0.4523, allocations: 0.674 MB / 0.7933 GB, free: 7.453 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.4523, allocations: 4 kB / 0.7933 GB, free: 7.449 MB / 0.5606 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0016/0.4539, allocations: 0.9174 MB / 0.7942 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.4539, allocations: 8 kB / 0.7942 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.4539, allocations: 8 kB / 0.7942 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000755/0.4547, allocations: 223 kB / 0.7944 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004791/0.4552, allocations: 115.8 kB / 0.7945 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004718/0.4599, allocations: 5.344 MB / 0.7997 GB, free: 400 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000392/0.4603, allocations: 31.97 kB / 0.7998 GB, free: 368 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.964e-05/0.4604, allocations: 24.05 kB / 0.7998 GB, free: 344 kB / 0.5606 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.0002725/0.4606, allocations: 221.7 kB / 0.8 GB, free: 112 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.154e-05/0.4607, allocations: 63.56 kB / 0.8001 GB, free: 48 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001452/0.4622, allocations: 0.7856 MB / 0.8008 GB, free: 15.24 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.4622, allocations: 4.188 kB / 0.8008 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.4622, allocations: 8 kB / 0.8009 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.4622, allocations: 3.984 kB / 0.8009 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002192/0.4644, allocations: 1.498 MB / 0.8023 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.4645, allocations: 4 kB / 0.8023 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003565/0.4648, allocations: 63.89 kB / 0.8024 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006449/0.4655, allocations: 206.6 kB / 0.8026 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.986e-05/0.4655, allocations: 11.98 kB / 0.8026 GB, free: 13.35 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00444/0.47, allocations: 5.274 MB / 0.8077 GB, free: 7.66 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.47, allocations: 0 / 0.8077 GB, free: 7.66 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001611/0.4716, allocations: 1.14 MB / 0.8089 GB, free: 6.473 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001845/0.4718, allocations: 172.7 kB / 0.809 GB, free: 6.285 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.734e-05/0.4719, allocations: 11.94 kB / 0.809 GB, free: 6.273 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003258/0.4722, allocations: 27.97 kB / 0.8091 GB, free: 6.246 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.41e-05/0.4723, allocations: 39.83 kB / 0.8091 GB, free: 6.207 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.938e-05/0.4723, allocations: 16 kB / 0.8091 GB, free: 6.191 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003303/0.4727, allocations: 310.9 kB / 0.8094 GB, free: 5.891 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.425e-06/0.4727, allocations: 0 / 0.8094 GB, free: 5.891 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0006228/0.4733, allocations: 171.9 kB / 0.8096 GB, free: 5.723 MB / 0.5762 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.0001448/0.4734, allocations: 115.7 kB / 0.8097 GB, free: 5.598 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001518/0.475, allocations: 1.016 MB / 0.8107 GB, free: 4.543 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.475, allocations: 0 / 0.8107 GB, free: 4.543 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009062/0.4759, allocations: 0.6759 MB / 0.8113 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008732/0.4768, allocations: 193 kB / 0.8115 GB, free: 3.656 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001853/0.4786, allocations: 1.266 MB / 0.8128 GB, free: 2.34 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004994/0.4792, allocations: 0.9494 MB / 0.8137 GB, free: 1.363 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002969/0.4795, allocations: 113 kB / 0.8138 GB, free: 1.254 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.148e-05/0.4796, allocations: 35.44 kB / 0.8138 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of SimCode: time 5.21e-07/0.4796, allocations: 0 / 0.8138 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of Templates: time 0.01397/0.4935, allocations: 8.961 MB / 0.8226 GB, free: 8.379 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (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 & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1)