Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine") translateModel(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008466/0.0008467, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.0008838/0.0008838, allocations: 168.7 kB / 15.95 MB, free: 200 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001691/0.001691, allocations: 267.2 kB / 291.3 MB, free: 1.969 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9675/0.9675, allocations: 169.5 MB / 0.5 GB, free: 14.21 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004237/0.0004239, allocations: 14.06 kB / 0.598 GB, free: 28.27 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1594/0.1598, allocations: 88.55 MB / 0.6845 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.009993/0.1698, allocations: 9.784 MB / 0.694 GB, free: 5.641 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01196/0.1818, allocations: 8.175 MB / 0.702 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002086/0.184, allocations: 47.69 kB / 0.7021 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001421/0.1854, allocations: 261.9 kB / 0.7023 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004325/0.1898, allocations: 1.279 MB / 0.7036 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00149/0.1913, allocations: 463 kB / 0.704 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002755/0.194, allocations: 2.449 MB / 0.7064 GB, free: 8.977 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003021/0.1971, allocations: 1.778 MB / 0.7081 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001186/0.1983, allocations: 0.7857 MB / 0.7089 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001323/0.1996, allocations: 0.9144 MB / 0.7098 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001259/0.1997, allocations: 60 kB / 0.7099 GB, free: 5.387 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00105/0.2008, allocations: 455.4 kB / 0.7103 GB, free: 4.941 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004344/0.2012, allocations: 486.4 kB / 0.7108 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003021/0.2016, allocations: 332.8 kB / 0.7111 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002103/0.2037, allocations: 1.96 MB / 0.713 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.2037, allocations: 0 / 0.713 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.793e-06/0.2037, allocations: 0 / 0.713 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.936e-05/0.2037, allocations: 0 / 0.713 GB, free: 2.168 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.002603/0.2063, allocations: 1.726 MB / 0.7147 GB, free: 396 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.2064, allocations: 8.031 kB / 0.7147 GB, free: 388 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009742/0.2161, allocations: 2.116 MB / 0.7168 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002232/0.2184, allocations: 1.079 MB / 0.7178 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.382e-05/0.2185, allocations: 82.31 kB / 0.7179 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002049/0.2187, allocations: 119.9 kB / 0.718 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005023/0.2237, allocations: 2.499 MB / 0.7204 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.829e-05/0.2238, allocations: 4 kB / 0.7204 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001473/0.2239, allocations: 55.94 kB / 0.7205 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000296/0.2242, allocations: 130.1 kB / 0.7206 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006261/0.2305, allocations: 2.584 MB / 0.7231 GB, free: 7.492 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01384/0.2444, allocations: 10.12 MB / 0.733 GB, free: 12.71 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00535/0.2498, allocations: 2.007 MB / 0.735 GB, free: 10.68 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002396/0.2522, allocations: 0.9954 MB / 0.736 GB, free: 9.684 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 4.684e-05/0.2522, allocations: 8.422 kB / 0.736 GB, free: 9.672 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.767e-05/0.2523, allocations: 42.94 kB / 0.736 GB, free: 9.621 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=53): time 4.619e-06/0.2523, allocations: 0 / 0.736 GB, free: 9.621 MB / 0.5294 GB Notification: Performance of matching and sorting (n=81): time 0.0294/0.2817, allocations: 8.769 MB / 0.7446 GB, free: 0.7969 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.168e-05/0.2818, allocations: 64.05 kB / 0.7446 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002165/0.284, allocations: 1.085 MB / 0.7457 GB, free: 15.62 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000213/0.2842, allocations: 41.7 kB / 0.7457 GB, free: 15.57 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008948/0.2851, allocations: 0.734 MB / 0.7464 GB, free: 14.83 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003922/0.2856, allocations: 283.8 kB / 0.7467 GB, free: 14.55 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.2857, allocations: 20 kB / 0.7467 GB, free: 14.53 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002883/0.286, allocations: 353.9 kB / 0.7471 GB, free: 14.18 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002869/0.2889, allocations: 1.087 MB / 0.7481 GB, free: 13.09 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003301/0.2922, allocations: 1.325 MB / 0.7494 GB, free: 11.67 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002941/0.2951, allocations: 1.143 MB / 0.7505 GB, free: 10.53 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.734e-06/0.2952, allocations: 7.938 kB / 0.7506 GB, free: 10.52 MB / 0.545 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008089/0.3033, allocations: 3.303 MB / 0.7538 GB, free: 7.188 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.197e-05/0.3033, allocations: 8 kB / 0.7538 GB, free: 7.18 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.856e-05/0.3034, allocations: 11.98 kB / 0.7538 GB, free: 7.168 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002619/0.306, allocations: 0.7801 MB / 0.7546 GB, free: 6.363 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001793/0.3078, allocations: 431.3 kB / 0.755 GB, free: 5.941 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01513/0.3229, allocations: 14.68 MB / 0.7693 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/0.325, allocations: 299.5 kB / 0.7696 GB, free: 5.891 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001901/0.3252, allocations: 51.95 kB / 0.7696 GB, free: 5.84 MB / 0.5606 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 2,(2,100.0%) 2,(3,100.0%) 5,(3,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008758/0.3261, allocations: 395.3 kB / 0.77 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003304/0.3265, allocations: 150.4 kB / 0.7702 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008196/0.3347, allocations: 3.238 MB / 0.7733 GB, free: 2.023 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.3347, allocations: 11.94 kB / 0.7733 GB, free: 2.012 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.757e-05/0.3347, allocations: 11.95 kB / 0.7733 GB, free: 2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.3348, allocations: 7.984 kB / 0.7734 GB, free: 1.992 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3147/0.6494, allocations: 4.924 MB / 0.7782 GB, free: 86.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.229e-05/0.6495, allocations: 2.406 kB / 0.7782 GB, free: 86.76 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001469/0.651, allocations: 366.3 kB / 0.7785 GB, free: 86.76 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002258/0.6533, allocations: 0.6994 MB / 0.7792 GB, free: 86.7 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001229/0.6534, allocations: 34.34 kB / 0.7792 GB, free: 86.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01173/0.6651, allocations: 14.31 MB / 0.7932 GB, free: 75.58 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.6652, allocations: 6.516 kB / 0.7932 GB, free: 75.58 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007396/0.6726, allocations: 3.084 MB / 0.7962 GB, free: 74.59 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007554/0.6734, allocations: 377.9 kB / 0.7966 GB, free: 74.42 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001875/0.6736, allocations: 20.88 kB / 0.7966 GB, free: 74.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001583/0.6752, allocations: 303.1 kB / 0.7969 GB, free: 74.39 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003027/0.6755, allocations: 82.27 kB / 0.797 GB, free: 74.38 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.125e-05/0.6756, allocations: 41.17 kB / 0.797 GB, free: 74.37 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00102/0.6766, allocations: 0.727 MB / 0.7977 GB, free: 74.07 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6766, allocations: 0 / 0.7977 GB, free: 74.07 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001436/0.678, allocations: 428.2 kB / 0.7981 GB, free: 74.04 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(3,100.0%) 5,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(3,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002115/0.6783, allocations: 129.5 kB / 0.7982 GB, free: 73.93 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006876/0.6852, allocations: 3.656 MB / 0.8018 GB, free: 72.32 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.6852, allocations: 0 / 0.8018 GB, free: 72.32 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003971/0.6892, allocations: 2.391 MB / 0.8042 GB, free: 71.05 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002111/0.6913, allocations: 487.7 kB / 0.8046 GB, free: 70.94 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007197/0.6985, allocations: 3.946 MB / 0.8085 GB, free: 69.05 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008802/0.6994, allocations: 1.386 MB / 0.8098 GB, free: 68.25 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001709/0.7011, allocations: 377.3 kB / 0.8102 GB, free: 68.12 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003414/0.7015, allocations: 103.5 kB / 0.8103 GB, free: 68.11 MB / 0.5606 GB Notification: Performance of SimCode: time 1.222e-06/0.7015, allocations: 1.062 kB / 0.8103 GB, free: 68.11 MB / 0.5606 GB Notification: Performance of Templates: time 0.04227/0.7438, allocations: 28.14 MB / 0.8378 GB, free: 48.78 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1)