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.001036/0.001037, allocations: 115.1 kB / 16.37 MB, free: 5.984 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.0009884/0.0009885, allocations: 193.5 kB / 17.31 MB, free: 5.602 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.255/1.255, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002138/0.002139, allocations: 280.2 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9311/0.9311, allocations: 169.3 MB / 0.4989 GB, free: 4.469 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 108.8 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1563/0.1583, allocations: 86.97 MB / 0.6816 GB, free: 7.449 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.006577/0.1649, allocations: 5.44 MB / 0.6869 GB, free: 1.98 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.2674/0.4323, allocations: 2.615 MB / 0.6895 GB, free: 12.86 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005806/0.4329, allocations: 23.16 kB / 0.6895 GB, free: 12.86 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001768/0.4348, allocations: 0.6782 MB / 0.6902 GB, free: 12.86 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001046/0.4358, allocations: 404.7 kB / 0.6906 GB, free: 12.83 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.4369, allocations: 396.3 kB / 0.6909 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001316/0.4382, allocations: 0.9622 MB / 0.6919 GB, free: 12.62 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007323/0.439, allocations: 459.3 kB / 0.6923 GB, free: 12.6 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006659/0.4396, allocations: 368.2 kB / 0.6927 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007089/0.4403, allocations: 403.7 kB / 0.6931 GB, free: 12.46 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001514/0.4405, allocations: 49.41 kB / 0.6931 GB, free: 12.46 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008348/0.4414, allocations: 362.9 kB / 0.6934 GB, free: 12.43 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003245/0.4417, allocations: 244.8 kB / 0.6937 GB, free: 12.4 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000587/0.4423, allocations: 352.9 kB / 0.694 GB, free: 12.29 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001434/0.4437, allocations: 0.9611 MB / 0.695 GB, free: 12.15 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.4437, allocations: 1.125 kB / 0.695 GB, free: 12.15 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4437, allocations: 0 / 0.695 GB, free: 12.15 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.4438, allocations: 0 / 0.695 GB, free: 12.15 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.001453/0.4452, allocations: 0.9817 MB / 0.6959 GB, free: 11.5 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.4453, allocations: 9.594 kB / 0.6959 GB, free: 11.5 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001337/0.4466, allocations: 192.9 kB / 0.6961 GB, free: 11.46 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007756/0.4474, allocations: 0.5144 MB / 0.6966 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.002e-05/0.4474, allocations: 41.62 kB / 0.6967 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001432/0.4476, allocations: 55.27 kB / 0.6967 GB, free: 11.09 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.4487, allocations: 0.8292 MB / 0.6975 GB, free: 10.63 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.465e-05/0.4487, allocations: 10.72 kB / 0.6975 GB, free: 10.62 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.663e-05/0.4488, allocations: 21.86 kB / 0.6975 GB, free: 10.61 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000185/0.4489, allocations: 67.94 kB / 0.6976 GB, free: 10.6 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008482/0.4498, allocations: 0.5732 MB / 0.6982 GB, free: 10.4 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003509/0.4533, allocations: 4.57 MB / 0.7026 GB, free: 6.527 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004357/0.4538, allocations: 293.9 kB / 0.7029 GB, free: 6.406 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002845/0.4541, allocations: 226.9 kB / 0.7031 GB, free: 6.316 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.265e-05/0.4541, allocations: 4.219 kB / 0.7031 GB, free: 6.316 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/0.4541, allocations: 37.16 kB / 0.7032 GB, free: 6.273 MB / 494.1 MB Notification: Performance of pre-optimization done (n=33): time 1.553e-06/0.4541, allocations: 4 kB / 0.7032 GB, free: 6.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=40): time 0.005095/0.4592, allocations: 2.628 MB / 0.7057 GB, free: 4.891 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.254e-05/0.4593, allocations: 60.34 kB / 0.7058 GB, free: 4.824 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004474/0.4597, allocations: 456.1 kB / 0.7062 GB, free: 4.602 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.257e-05/0.4598, allocations: 31.8 kB / 0.7063 GB, free: 4.566 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.4599, allocations: 337.7 kB / 0.7066 GB, free: 4.297 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.183e-05/0.46, allocations: 147 kB / 0.7067 GB, free: 4.184 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001547/0.4602, allocations: 102.1 kB / 0.7068 GB, free: 4.129 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.813e-05/0.4603, allocations: 367.6 kB / 0.7072 GB, free: 3.789 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003645/0.4606, allocations: 238.1 kB / 0.7074 GB, free: 3.707 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004245/0.4611, allocations: 405.4 kB / 0.7078 GB, free: 3.414 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007647/0.4618, allocations: 0.6798 MB / 0.7085 GB, free: 2.977 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.4618, allocations: 1.719 kB / 0.7085 GB, free: 2.977 MB / 494.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001594/0.4634, allocations: 0.9153 MB / 0.7093 GB, free: 2.594 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.4635, allocations: 7.094 kB / 0.7094 GB, free: 2.594 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.4635, allocations: 5.906 kB / 0.7094 GB, free: 2.594 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007425/0.4642, allocations: 229.3 kB / 0.7096 GB, free: 2.523 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005161/0.4648, allocations: 115.2 kB / 0.7097 GB, free: 2.512 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00444/0.4692, allocations: 5.343 MB / 0.7149 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004531/0.4697, allocations: 29.12 kB / 0.7149 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.126e-05/0.4697, allocations: 24.05 kB / 0.715 GB, free: 13.84 MB / 0.4981 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.0003/0.47, allocations: 225.5 kB / 0.7152 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.4701, allocations: 59.53 kB / 0.7152 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001431/0.4716, allocations: 0.7746 MB / 0.716 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.4716, allocations: 3.969 kB / 0.716 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4716, allocations: 3.297 kB / 0.716 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.4716, allocations: 2.016 kB / 0.716 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002462/0.4741, allocations: 1.505 MB / 0.7175 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.4741, allocations: 2.5 kB / 0.7175 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003635/0.4745, allocations: 70.91 kB / 0.7175 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006456/0.4751, allocations: 207.5 kB / 0.7177 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.305e-05/0.4752, allocations: 8.859 kB / 0.7177 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004494/0.4797, allocations: 5.273 MB / 0.7229 GB, free: 7.797 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.4797, allocations: 6.406 kB / 0.7229 GB, free: 7.793 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001698/0.4814, allocations: 1.125 MB / 0.724 GB, free: 7.219 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002597/0.4817, allocations: 167.5 kB / 0.7242 GB, free: 7.082 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.48e-05/0.4817, allocations: 18.05 kB / 0.7242 GB, free: 7.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003198/0.4821, allocations: 24.73 kB / 0.7242 GB, free: 7.066 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.343e-05/0.4822, allocations: 34.05 kB / 0.7242 GB, free: 7.059 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-05/0.4822, allocations: 13.66 kB / 0.7242 GB, free: 7.055 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003332/0.4825, allocations: 312.4 kB / 0.7245 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4825, allocations: 1.75 kB / 0.7245 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006762/0.4832, allocations: 169.8 kB / 0.7247 GB, free: 6.887 MB / 0.4981 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.0001409/0.4834, allocations: 113.1 kB / 0.7248 GB, free: 6.785 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001524/0.4849, allocations: 1.028 MB / 0.7258 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.4849, allocations: 1.094 kB / 0.7258 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008852/0.4858, allocations: 0.6811 MB / 0.7265 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008044/0.4866, allocations: 181.8 kB / 0.7267 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001744/0.4884, allocations: 1.25 MB / 0.7279 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004661/0.4889, allocations: 0.9497 MB / 0.7288 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000294/0.4892, allocations: 112.2 kB / 0.7289 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.815e-05/0.4893, allocations: 36.81 kB / 0.7289 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.4893, allocations: 0 / 0.7289 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of Templates: time 0.01491/0.5042, allocations: 8.865 MB / 0.7376 GB, free: 128 kB / 0.4981 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1)