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.001536/0.001537, allocations: 111.7 kB / 16.41 MB, free: 6.008 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.001262/0.001262, allocations: 182.8 kB / 17.34 MB, free: 5.629 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.4/1.4, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002206/0.002206, allocations: 290.3 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.012/1.012, allocations: 169.3 MB / 0.499 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 91.84 kB / 0.6821 GB, free: 6.965 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5484/0.5503, allocations: 86.99 MB / 0.7671 GB, free: 3.891 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.009996/0.5604, allocations: 6.728 MB / 0.7736 GB, free: 13.14 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.005654/0.5661, allocations: 3.028 MB / 0.7766 GB, free: 10.1 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000891/0.567, allocations: 23.88 kB / 0.7766 GB, free: 10.07 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002742/0.5698, allocations: 0.9549 MB / 0.7775 GB, free: 9.117 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001604/0.5714, allocations: 0.4934 MB / 0.778 GB, free: 8.621 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001342/0.5728, allocations: 431.8 kB / 0.7784 GB, free: 8.203 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001804/0.5746, allocations: 1.228 MB / 0.7796 GB, free: 6.969 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001155/0.5758, allocations: 0.6544 MB / 0.7803 GB, free: 6.312 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009149/0.5767, allocations: 474.4 kB / 0.7807 GB, free: 5.848 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009475/0.5776, allocations: 0.5215 MB / 0.7812 GB, free: 5.324 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.000201/0.5779, allocations: 68 kB / 0.7813 GB, free: 5.258 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008968/0.5788, allocations: 379.2 kB / 0.7817 GB, free: 4.887 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003866/0.5792, allocations: 303.2 kB / 0.7819 GB, free: 4.59 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0007479/0.5799, allocations: 449.8 kB / 0.7824 GB, free: 4.148 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001758/0.5817, allocations: 1.217 MB / 0.7836 GB, free: 2.93 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 9.829e-06/0.5817, allocations: 0 / 0.7836 GB, free: 2.93 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.823e-06/0.5817, allocations: 7.938 kB / 0.7836 GB, free: 2.922 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.592e-05/0.5818, allocations: 0 / 0.7836 GB, free: 2.922 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.002557/0.5843, allocations: 1.157 MB / 0.7847 GB, free: 1.711 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.5844, allocations: 12.03 kB / 0.7847 GB, free: 1.699 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001648/0.586, allocations: 235.5 kB / 0.7849 GB, free: 1.469 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.5871, allocations: 0.5921 MB / 0.7855 GB, free: 0.8398 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.026e-05/0.5872, allocations: 49.67 kB / 0.7856 GB, free: 0.793 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.5873, allocations: 64.36 kB / 0.7856 GB, free: 0.7305 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/0.5888, allocations: 1.085 MB / 0.7867 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.701e-05/0.5888, allocations: 11.92 kB / 0.7867 GB, free: 15.53 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.006e-05/0.5889, allocations: 31.98 kB / 0.7867 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000144/0.589, allocations: 81.27 kB / 0.7868 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.5901, allocations: 0.7543 MB / 0.7875 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005575/0.5957, allocations: 5.878 MB / 0.7933 GB, free: 8.355 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009568/0.5967, allocations: 0.5542 MB / 0.7938 GB, free: 7.797 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004377/0.5972, allocations: 326 kB / 0.7941 GB, free: 7.477 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.235e-05/0.5972, allocations: 8.438 kB / 0.7941 GB, free: 7.469 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.5972, allocations: 46.88 kB / 0.7942 GB, free: 7.414 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=47): time 2.745e-06/0.5972, allocations: 0 / 0.7942 GB, free: 7.414 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.003988/0.6012, allocations: 1.99 MB / 0.7961 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.698e-05/0.6013, allocations: 55.84 kB / 0.7962 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006686/0.602, allocations: 0.5508 MB / 0.7967 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.457e-05/0.602, allocations: 37.69 kB / 0.7968 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003015/0.6023, allocations: 410.9 kB / 0.7971 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.6025, allocations: 173.6 kB / 0.7973 GB, free: 4.078 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001799/0.6027, allocations: 122.6 kB / 0.7974 GB, free: 3.953 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001801/0.6029, allocations: 374.7 kB / 0.7978 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003992/0.6033, allocations: 277.8 kB / 0.7981 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005519/0.6038, allocations: 493 kB / 0.7985 GB, free: 2.723 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/0.6049, allocations: 0.8054 MB / 0.7993 GB, free: 1.828 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.6049, allocations: 4 kB / 0.7993 GB, free: 1.824 MB / 0.5606 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001814/0.6067, allocations: 1.094 MB / 0.8004 GB, free: 0.7109 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.6068, allocations: 8 kB / 0.8004 GB, free: 0.7031 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.6068, allocations: 4.875 kB / 0.8004 GB, free: 0.6992 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008549/0.6076, allocations: 287.1 kB / 0.8007 GB, free: 416 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004686/0.6081, allocations: 123.8 kB / 0.8008 GB, free: 292 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007456/0.6156, allocations: 7.126 MB / 0.8077 GB, free: 8.598 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000725/0.6163, allocations: 51.89 kB / 0.8078 GB, free: 8.547 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.202e-05/0.6164, allocations: 32.06 kB / 0.8078 GB, free: 8.516 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.0004664/0.6169, allocations: 255.9 kB / 0.8081 GB, free: 8.258 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001751/0.6171, allocations: 71.16 kB / 0.8081 GB, free: 8.188 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001736/0.6188, allocations: 0.8924 MB / 0.809 GB, free: 7.277 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.6189, allocations: 4 kB / 0.809 GB, free: 7.273 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.841e-05/0.6189, allocations: 4 kB / 0.809 GB, free: 7.27 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.986e-06/0.6189, allocations: 3.984 kB / 0.809 GB, free: 7.266 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003042/0.6219, allocations: 1.721 MB / 0.8107 GB, free: 5.457 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.622, allocations: 0 / 0.8107 GB, free: 5.457 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000298/0.6223, allocations: 63.83 kB / 0.8108 GB, free: 5.395 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007856/0.6231, allocations: 283.3 kB / 0.811 GB, free: 5.105 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.311e-05/0.6231, allocations: 11.98 kB / 0.811 GB, free: 5.094 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007644/0.6308, allocations: 7.11 MB / 0.818 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/0.6308, allocations: 3.938 kB / 0.818 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001797/0.6326, allocations: 0.9835 MB / 0.8189 GB, free: 12.38 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003895/0.633, allocations: 192.4 kB / 0.8191 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001557/0.6332, allocations: 12 kB / 0.8191 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004258/0.6336, allocations: 35.91 kB / 0.8192 GB, free: 12.13 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.6337, allocations: 43.88 kB / 0.8192 GB, free: 12.09 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.228e-05/0.6338, allocations: 16 kB / 0.8192 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005248/0.6343, allocations: 387.1 kB / 0.8196 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6343, allocations: 3.938 kB / 0.8196 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0009001/0.6352, allocations: 224 kB / 0.8198 GB, free: 11.47 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.0001936/0.6354, allocations: 119.1 kB / 0.8199 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002155/0.6376, allocations: 1.271 MB / 0.8212 GB, free: 10.03 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.563e-06/0.6376, allocations: 0 / 0.8212 GB, free: 10.03 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001303/0.6389, allocations: 0.8894 MB / 0.822 GB, free: 9.086 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00112/0.6401, allocations: 220.1 kB / 0.8223 GB, free: 8.883 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002935/0.643, allocations: 1.387 MB / 0.8236 GB, free: 7.441 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009749/0.644, allocations: 1.005 MB / 0.8246 GB, free: 6.41 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001868/0.6442, allocations: 47.44 kB / 0.8246 GB, free: 6.363 MB / 0.5919 GB Notification: Performance of SimCode: time 5.41e-07/0.6442, allocations: 0 / 0.8246 GB, free: 6.363 MB / 0.5919 GB Notification: Performance of Templates: time 0.02858/0.6728, allocations: 20.7 MB / 0.8448 GB, free: 1.703 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)