Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") translateModel(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 102.3 kB / 16.27 MB, free: 6.414 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.001527/0.001527, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.394/1.394, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00217/0.00217, allocations: 285 kB / 291.3 MB, free: 14.54 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9502/0.9502, allocations: 169.3 MB / 0.4988 GB, free: 4.5 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002077/0.002077, allocations: 91.59 kB / 0.5959 GB, free: 15.16 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1908/0.1929, allocations: 86.98 MB / 0.6808 GB, free: 8.184 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.009677/0.2027, allocations: 6.717 MB / 0.6874 GB, free: 1.438 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.3239/0.5266, allocations: 3.018 MB / 0.6904 GB, free: 12.29 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007365/0.5274, allocations: 29.88 kB / 0.6904 GB, free: 12.29 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00251/0.53, allocations: 0.9505 MB / 0.6913 GB, free: 12.28 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001473/0.5314, allocations: 0.5007 MB / 0.6918 GB, free: 12.16 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001267/0.5327, allocations: 426.4 kB / 0.6922 GB, free: 12.12 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00179/0.5345, allocations: 1.223 MB / 0.6934 GB, free: 11.9 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001211/0.5357, allocations: 0.6606 MB / 0.694 GB, free: 11.82 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009706/0.5367, allocations: 473.7 kB / 0.6945 GB, free: 11.7 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00106/0.5378, allocations: 0.5172 MB / 0.695 GB, free: 11.51 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002391/0.5381, allocations: 66.66 kB / 0.6951 GB, free: 11.51 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001072/0.5391, allocations: 373.7 kB / 0.6954 GB, free: 11.44 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005237/0.5397, allocations: 324.5 kB / 0.6957 GB, free: 11.3 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009784/0.5407, allocations: 442.5 kB / 0.6962 GB, free: 11.05 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002262/0.5429, allocations: 1.203 MB / 0.6973 GB, free: 10.68 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.5429, allocations: 0 / 0.6973 GB, free: 10.68 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.543, allocations: 0 / 0.6973 GB, free: 10.68 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.243e-05/0.543, allocations: 1.25 kB / 0.6973 GB, free: 10.68 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.002844/0.5459, allocations: 1.162 MB / 0.6985 GB, free: 9.898 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.5459, allocations: 10.66 kB / 0.6985 GB, free: 9.898 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001904/0.5478, allocations: 242.4 kB / 0.6987 GB, free: 9.84 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001084/0.5489, allocations: 0.5475 MB / 0.6992 GB, free: 9.477 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.561e-05/0.549, allocations: 49.94 kB / 0.6993 GB, free: 9.457 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001458/0.5491, allocations: 65.48 kB / 0.6994 GB, free: 9.438 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001781/0.5509, allocations: 1.077 MB / 0.7004 GB, free: 8.832 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.568e-05/0.551, allocations: 10.61 kB / 0.7004 GB, free: 8.824 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.551e-05/0.5511, allocations: 33.28 kB / 0.7004 GB, free: 8.805 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001808/0.5512, allocations: 83.53 kB / 0.7005 GB, free: 8.793 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001435/0.5527, allocations: 0.7497 MB / 0.7013 GB, free: 8.527 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005127/0.5578, allocations: 5.895 MB / 0.707 GB, free: 3.547 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/0.5589, allocations: 0.5528 MB / 0.7076 GB, free: 3.332 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004625/0.5593, allocations: 332.6 kB / 0.7079 GB, free: 3.199 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.372e-05/0.5594, allocations: 5.609 kB / 0.7079 GB, free: 3.199 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.993e-05/0.5594, allocations: 38.41 kB / 0.7079 GB, free: 3.156 MB / 494.1 MB Notification: Performance of pre-optimization done (n=47): time 1.563e-06/0.5594, allocations: 4 kB / 0.7079 GB, free: 3.152 MB / 494.1 MB Notification: Performance of matching and sorting (n=48): time 0.003949/0.5634, allocations: 1.981 MB / 0.7099 GB, free: 2.109 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.754e-05/0.5634, allocations: 60.98 kB / 0.7099 GB, free: 2.043 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006643/0.5641, allocations: 0.5579 MB / 0.7105 GB, free: 1.777 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.422e-05/0.5641, allocations: 32.45 kB / 0.7105 GB, free: 1.742 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001978/0.5643, allocations: 419.8 kB / 0.7109 GB, free: 1.414 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.5645, allocations: 169.8 kB / 0.711 GB, free: 1.285 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002194/0.5647, allocations: 128.2 kB / 0.7112 GB, free: 1.211 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.644e-05/0.5648, allocations: 374.1 kB / 0.7115 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004162/0.5652, allocations: 275.8 kB / 0.7118 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005014/0.5657, allocations: 497.6 kB / 0.7123 GB, free: 412 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009738/0.5667, allocations: 0.8103 MB / 0.7131 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.5667, allocations: 2.312 kB / 0.7131 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001897/0.5686, allocations: 1.084 MB / 0.7141 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.266e-05/0.5687, allocations: 9.938 kB / 0.7141 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.579e-05/0.5687, allocations: 10.58 kB / 0.7141 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008715/0.5696, allocations: 278 kB / 0.7144 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004857/0.5701, allocations: 126.1 kB / 0.7145 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006847/0.5769, allocations: 7.136 MB / 0.7215 GB, free: 9.082 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006983/0.5776, allocations: 36.64 kB / 0.7215 GB, free: 9.074 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.744e-05/0.5777, allocations: 35.62 kB / 0.7216 GB, free: 9.062 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,6,100.0%), (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.0004341/0.5781, allocations: 253.8 kB / 0.7218 GB, free: 8.879 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001636/0.5783, allocations: 75.03 kB / 0.7219 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001702/0.58, allocations: 0.88 MB / 0.7227 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.58, allocations: 13.03 kB / 0.7227 GB, free: 8.449 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.5801, allocations: 6.531 kB / 0.7228 GB, free: 8.445 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.5801, allocations: 2.641 kB / 0.7228 GB, free: 8.445 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003004/0.5831, allocations: 1.73 MB / 0.7244 GB, free: 7.578 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.5831, allocations: 1.344 kB / 0.7244 GB, free: 7.578 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002661/0.5834, allocations: 63.52 kB / 0.7245 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007351/0.5841, allocations: 272.8 kB / 0.7248 GB, free: 7.48 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.457e-05/0.5842, allocations: 11.53 kB / 0.7248 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00664/0.5908, allocations: 7.119 MB / 0.7317 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.5908, allocations: 1.172 kB / 0.7317 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001585/0.5924, allocations: 0.9849 MB / 0.7327 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003834/0.5928, allocations: 196.9 kB / 0.7329 GB, free: 440 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.593, allocations: 8.25 kB / 0.7329 GB, free: 436 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004207/0.5934, allocations: 33.81 kB / 0.7329 GB, free: 416 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.5935, allocations: 46.31 kB / 0.733 GB, free: 388 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.673e-05/0.5935, allocations: 15.97 kB / 0.733 GB, free: 384 kB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004811/0.594, allocations: 384.6 kB / 0.7333 GB, free: 156 kB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.594, allocations: 0 / 0.7333 GB, free: 156 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0009767/0.595, allocations: 225.2 kB / 0.7336 GB, free: 132 kB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 simulation (31): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001823/0.5952, allocations: 112.6 kB / 0.7337 GB, free: 28 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002303/0.5975, allocations: 1.344 MB / 0.735 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.5975, allocations: 0.9375 kB / 0.735 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001275/0.5988, allocations: 0.8881 MB / 0.7358 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.6, allocations: 221.9 kB / 0.7361 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00255/0.6025, allocations: 1.402 MB / 0.7374 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006759/0.6032, allocations: 1.011 MB / 0.7384 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001627/0.6034, allocations: 44.91 kB / 0.7385 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of SimCode: time 2.51e-07/0.6034, allocations: 3.938 kB / 0.7385 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of Templates: time 0.02642/0.6298, allocations: 20.65 MB / 0.7586 GB, free: 12.58 MB / 0.5294 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1)