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.001141/0.001141, allocations: 106.7 kB / 16.41 MB, free: 6.453 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.001132/0.001132, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.378/1.378, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002539/0.002539, allocations: 285.7 kB / 291.5 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 1.001/1.001, allocations: 169.3 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 99.84 kB / 0.6821 GB, free: 6.965 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5314/0.5333, allocations: 86.97 MB / 0.767 GB, free: 4.078 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.009772/0.5431, allocations: 6.729 MB / 0.7736 GB, free: 13.32 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.005721/0.5489, allocations: 3.04 MB / 0.7766 GB, free: 10.27 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008982/0.5498, allocations: 27.81 kB / 0.7766 GB, free: 10.25 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002737/0.5527, allocations: 0.9414 MB / 0.7775 GB, free: 9.301 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001713/0.5544, allocations: 0.5168 MB / 0.778 GB, free: 8.781 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001333/0.5557, allocations: 429.2 kB / 0.7784 GB, free: 8.363 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001843/0.5576, allocations: 1.224 MB / 0.7796 GB, free: 7.133 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001221/0.5588, allocations: 0.6623 MB / 0.7803 GB, free: 6.469 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001004/0.5598, allocations: 474.3 kB / 0.7807 GB, free: 6.004 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001063/0.5609, allocations: 0.5098 MB / 0.7812 GB, free: 5.492 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.000236/0.5612, allocations: 68 kB / 0.7813 GB, free: 5.426 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009641/0.5621, allocations: 387.2 kB / 0.7817 GB, free: 5.047 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0004465/0.5626, allocations: 307.1 kB / 0.782 GB, free: 4.746 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0008227/0.5634, allocations: 445.8 kB / 0.7824 GB, free: 4.309 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001952/0.5654, allocations: 1.221 MB / 0.7836 GB, free: 3.086 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.5654, allocations: 0 / 0.7836 GB, free: 3.086 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.904e-06/0.5654, allocations: 7.938 kB / 0.7836 GB, free: 3.078 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.601e-05/0.5655, allocations: 0 / 0.7836 GB, free: 3.078 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.002782/0.5683, allocations: 1.157 MB / 0.7847 GB, free: 1.867 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.61e-05/0.5683, allocations: 12.03 kB / 0.7847 GB, free: 1.855 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001728/0.5701, allocations: 239.5 kB / 0.785 GB, free: 1.621 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009772/0.571, allocations: 0.5921 MB / 0.7855 GB, free: 0.9922 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.241e-05/0.5711, allocations: 41.69 kB / 0.7856 GB, free: 0.9531 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.5712, allocations: 68.36 kB / 0.7856 GB, free: 0.8867 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001629/0.5729, allocations: 1.089 MB / 0.7867 GB, free: 15.69 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.262e-05/0.5729, allocations: 7.984 kB / 0.7867 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.705e-05/0.573, allocations: 32 kB / 0.7867 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001576/0.5732, allocations: 77.27 kB / 0.7868 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001156/0.5743, allocations: 0.7581 MB / 0.7876 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005626/0.58, allocations: 5.87 MB / 0.7933 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001001/0.581, allocations: 0.5598 MB / 0.7938 GB, free: 7.957 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004504/0.5814, allocations: 330 kB / 0.7942 GB, free: 7.633 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.668e-05/0.5815, allocations: 4.438 kB / 0.7942 GB, free: 7.629 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.5815, allocations: 39 kB / 0.7942 GB, free: 7.582 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=47): time 2.575e-06/0.5815, allocations: 0 / 0.7942 GB, free: 7.582 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.003979/0.5855, allocations: 1.994 MB / 0.7961 GB, free: 5.496 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.569e-05/0.5856, allocations: 59.78 kB / 0.7962 GB, free: 5.426 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006661/0.5863, allocations: 0.5508 MB / 0.7967 GB, free: 4.863 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.694e-05/0.5863, allocations: 37.7 kB / 0.7968 GB, free: 4.82 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003221/0.5866, allocations: 418.9 kB / 0.7972 GB, free: 4.402 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001551/0.5868, allocations: 173.6 kB / 0.7973 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001936/0.587, allocations: 122.6 kB / 0.7975 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001857/0.5872, allocations: 378.7 kB / 0.7978 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004232/0.5876, allocations: 273.8 kB / 0.7981 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005854/0.5882, allocations: 497 kB / 0.7986 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.5892, allocations: 0.8054 MB / 0.7993 GB, free: 1.977 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.5893, allocations: 4 kB / 0.7993 GB, free: 1.973 MB / 0.5606 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001771/0.591, allocations: 1.09 MB / 0.8004 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.801e-05/0.5911, allocations: 8 kB / 0.8004 GB, free: 0.8555 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.5911, allocations: 4.875 kB / 0.8004 GB, free: 0.8516 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00086/0.592, allocations: 283.2 kB / 0.8007 GB, free: 0.5625 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004683/0.5924, allocations: 127.7 kB / 0.8008 GB, free: 448 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006587/0.599, allocations: 7.126 MB / 0.8078 GB, free: 8.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006602/0.5997, allocations: 47.89 kB / 0.8078 GB, free: 8.703 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.936e-05/0.5998, allocations: 32.06 kB / 0.8078 GB, free: 8.672 MB / 0.5762 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.0003974/0.6002, allocations: 249.5 kB / 0.8081 GB, free: 8.418 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001603/0.6004, allocations: 71.16 kB / 0.8082 GB, free: 8.348 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001549/0.6019, allocations: 0.8923 MB / 0.809 GB, free: 7.438 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.602, allocations: 4 kB / 0.809 GB, free: 7.434 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.602, allocations: 4 kB / 0.809 GB, free: 7.43 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.602, allocations: 3.984 kB / 0.809 GB, free: 7.426 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002641/0.6046, allocations: 1.733 MB / 0.8107 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.6047, allocations: 192 / 0.8107 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000266/0.6049, allocations: 67.83 kB / 0.8108 GB, free: 5.539 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007551/0.6057, allocations: 267.4 kB / 0.811 GB, free: 5.266 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.17e-05/0.6057, allocations: 15.98 kB / 0.8111 GB, free: 5.25 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006408/0.6122, allocations: 7.115 MB / 0.818 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.6122, allocations: 0 / 0.818 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001574/0.6138, allocations: 0.9873 MB / 0.819 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003371/0.6141, allocations: 188.2 kB / 0.8192 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001109/0.6143, allocations: 16 kB / 0.8192 GB, free: 12.32 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004077/0.6147, allocations: 31.91 kB / 0.8192 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.6148, allocations: 43.94 kB / 0.8192 GB, free: 12.24 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.12e-05/0.6148, allocations: 12 kB / 0.8193 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004447/0.6153, allocations: 391 kB / 0.8196 GB, free: 11.85 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6153, allocations: 0 / 0.8196 GB, free: 11.85 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0008595/0.6162, allocations: 220 kB / 0.8198 GB, free: 11.64 MB / 0.5919 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.000177/0.6163, allocations: 115.2 kB / 0.8199 GB, free: 11.51 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002028/0.6184, allocations: 1.279 MB / 0.8212 GB, free: 10.19 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.6184, allocations: 0 / 0.8212 GB, free: 10.19 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001223/0.6196, allocations: 0.8932 MB / 0.8221 GB, free: 9.242 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.6207, allocations: 221.1 kB / 0.8223 GB, free: 9.035 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002666/0.6234, allocations: 1.379 MB / 0.8236 GB, free: 7.602 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008048/0.6242, allocations: 1.013 MB / 0.8246 GB, free: 6.562 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001753/0.6244, allocations: 43.44 kB / 0.8247 GB, free: 6.52 MB / 0.5919 GB Notification: Performance of SimCode: time 6.61e-07/0.6244, allocations: 0 / 0.8247 GB, free: 6.52 MB / 0.5919 GB Notification: Performance of Templates: time 0.02536/0.6497, allocations: 20.7 MB / 0.8449 GB, free: 1.863 MB / 0.6075 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)