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.004196/0.004196, allocations: 99.58 kB / 15.73 MB, free: 6.02 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.001041/0.001041, allocations: 192.3 kB / 16.67 MB, free: 5.938 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.294/1.294, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002153/0.002153, allocations: 283 kB / 290.8 MB, free: 1.754 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9478/0.9478, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 100.2 kB / 0.6815 GB, free: 15.48 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1635/0.1651, allocations: 86.97 MB / 0.7664 GB, free: 8.434 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.007665/0.1728, allocations: 6.73 MB / 0.773 GB, free: 1.676 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.305/0.4779, allocations: 3.02 MB / 0.7759 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004196/0.4783, allocations: 29.09 kB / 0.7759 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002091/0.4804, allocations: 0.945 MB / 0.7769 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0009056/0.4814, allocations: 0.5034 MB / 0.7773 GB, free: 8.84 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008564/0.4822, allocations: 423.8 kB / 0.7777 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001052/0.4833, allocations: 1.226 MB / 0.7789 GB, free: 8.594 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007624/0.4841, allocations: 0.6693 MB / 0.7796 GB, free: 8.543 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004412/0.4845, allocations: 473 kB / 0.78 GB, free: 8.457 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005238/0.485, allocations: 0.518 MB / 0.7806 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.988e-05/0.4852, allocations: 66.28 kB / 0.7806 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005928/0.4858, allocations: 377.8 kB / 0.781 GB, free: 8.332 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002278/0.486, allocations: 310 kB / 0.7813 GB, free: 8.219 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003449/0.4863, allocations: 448.6 kB / 0.7817 GB, free: 7.965 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001054/0.4874, allocations: 1.219 MB / 0.7829 GB, free: 7.582 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.4874, allocations: 9.281 kB / 0.7829 GB, free: 7.574 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.042e-06/0.4874, allocations: 0 / 0.7829 GB, free: 7.574 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.633e-05/0.4874, allocations: 0 / 0.7829 GB, free: 7.574 MB / 0.5606 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.001625/0.4891, allocations: 1.181 MB / 0.7841 GB, free: 6.773 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.4891, allocations: 9.844 kB / 0.7841 GB, free: 6.773 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001521/0.4906, allocations: 242.9 kB / 0.7843 GB, free: 6.715 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008087/0.4915, allocations: 0.596 MB / 0.7849 GB, free: 6.34 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.333e-05/0.4915, allocations: 47.58 kB / 0.7849 GB, free: 6.324 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.442e-05/0.4916, allocations: 65.05 kB / 0.785 GB, free: 6.305 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/0.4929, allocations: 1.085 MB / 0.786 GB, free: 5.695 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/0.4929, allocations: 8.359 kB / 0.7861 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.592e-05/0.493, allocations: 33.36 kB / 0.7861 GB, free: 5.672 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001288/0.4931, allocations: 84.7 kB / 0.7862 GB, free: 5.66 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001008/0.4941, allocations: 0.7583 MB / 0.7869 GB, free: 5.387 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003944/0.4981, allocations: 5.882 MB / 0.7926 GB, free: 16.41 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008514/0.4989, allocations: 0.551 MB / 0.7932 GB, free: 16.2 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003802/0.4993, allocations: 324.5 kB / 0.7935 GB, free: 16.07 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.903e-05/0.4994, allocations: 5.953 kB / 0.7935 GB, free: 16.07 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.586e-05/0.4994, allocations: 38.19 kB / 0.7935 GB, free: 16.03 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=47): time 1.673e-06/0.4994, allocations: 0 / 0.7935 GB, free: 16.03 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.003387/0.5028, allocations: 2.004 MB / 0.7955 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.537e-05/0.5028, allocations: 58 kB / 0.7956 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005116/0.5033, allocations: 0.5505 MB / 0.7961 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.718e-05/0.5034, allocations: 36.17 kB / 0.7961 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002194/0.5036, allocations: 429.4 kB / 0.7965 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/0.5037, allocations: 186.6 kB / 0.7967 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001881/0.5039, allocations: 124.6 kB / 0.7968 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.5041, allocations: 378.2 kB / 0.7972 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003857/0.5045, allocations: 275.4 kB / 0.7975 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000523/0.505, allocations: 496.8 kB / 0.7979 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/0.506, allocations: 0.805 MB / 0.7987 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.506, allocations: 3.125 kB / 0.7987 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001806/0.5078, allocations: 1.089 MB / 0.7998 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.5079, allocations: 8.594 kB / 0.7998 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.5079, allocations: 7.406 kB / 0.7998 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008277/0.5087, allocations: 284 kB / 0.8001 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004755/0.5092, allocations: 128.8 kB / 0.8002 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006897/0.5161, allocations: 7.135 MB / 0.8072 GB, free: 5.922 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005525/0.5167, allocations: 44.39 kB / 0.8072 GB, free: 5.906 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.072e-05/0.5167, allocations: 27 kB / 0.8072 GB, free: 5.902 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.0003508/0.5171, allocations: 248.3 kB / 0.8075 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.5172, allocations: 80.06 kB / 0.8075 GB, free: 5.68 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001643/0.5189, allocations: 0.89 MB / 0.8084 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.705e-06/0.5189, allocations: 10 kB / 0.8084 GB, free: 5.281 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.5189, allocations: 3.219 kB / 0.8084 GB, free: 5.281 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.5189, allocations: 3.031 kB / 0.8084 GB, free: 5.281 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002798/0.5217, allocations: 1.722 MB / 0.8101 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.5217, allocations: 1.812 kB / 0.8101 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002531/0.522, allocations: 63.47 kB / 0.8102 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007335/0.5227, allocations: 267.3 kB / 0.8104 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.609e-05/0.5228, allocations: 12.38 kB / 0.8104 GB, free: 4.316 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006369/0.5292, allocations: 7.136 MB / 0.8174 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.5292, allocations: 6.594 kB / 0.8174 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001555/0.5307, allocations: 0.9881 MB / 0.8184 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002805/0.531, allocations: 190 kB / 0.8186 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.264e-05/0.5311, allocations: 12.22 kB / 0.8186 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003693/0.5315, allocations: 34.28 kB / 0.8186 GB, free: 13.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.972e-05/0.5316, allocations: 45.05 kB / 0.8186 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.549e-05/0.5316, allocations: 15.66 kB / 0.8187 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004356/0.5321, allocations: 394.4 kB / 0.819 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5321, allocations: 0 / 0.819 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.000806/0.5329, allocations: 220.3 kB / 0.8192 GB, free: 13.18 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.0001459/0.5331, allocations: 117.3 kB / 0.8194 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00189/0.5349, allocations: 1.278 MB / 0.8206 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.535, allocations: 0 / 0.8206 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001209/0.5362, allocations: 0.8923 MB / 0.8215 GB, free: 11.72 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009836/0.5372, allocations: 221 kB / 0.8217 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002018/0.5392, allocations: 1.355 MB / 0.823 GB, free: 10.92 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006101/0.5398, allocations: 1.01 MB / 0.824 GB, free: 10.19 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003536/0.5402, allocations: 125.5 kB / 0.8241 GB, free: 10.16 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.5403, allocations: 42.06 kB / 0.8242 GB, free: 10.15 MB / 0.5919 GB Notification: Performance of SimCode: time 4.01e-07/0.5403, allocations: 0 / 0.8242 GB, free: 10.15 MB / 0.5919 GB Notification: Performance of Templates: time 0.01889/0.5592, allocations: 11.31 MB / 0.8352 GB, free: 5.195 MB / 0.5919 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)