Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.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.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance") translateModel(BuildingSystems.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004761/0.004761, allocations: 103.9 kB / 15.74 MB, free: 5.953 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.001077/0.001077, allocations: 188.9 kB / 16.67 MB, free: 5.883 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.304/1.304, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002058/0.002058, allocations: 291 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.9281/0.9281, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001798/0.001798, allocations: 99.84 kB / 0.6814 GB, free: 15.52 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1444, allocations: 86.97 MB / 0.7664 GB, free: 8.473 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.004265/0.1487, allocations: 3.064 MB / 0.7694 GB, free: 5.395 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001974/0.1507, allocations: 1.336 MB / 0.7707 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000148/0.1509, allocations: 7.938 kB / 0.7707 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0009623/0.1518, allocations: 329.9 kB / 0.771 GB, free: 3.723 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003495/0.1522, allocations: 139.3 kB / 0.7711 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003744/0.1526, allocations: 143.6 kB / 0.7713 GB, free: 3.445 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003531/0.1529, allocations: 306.8 kB / 0.7715 GB, free: 3.145 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003913/0.1533, allocations: 236.3 kB / 0.7718 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001675/0.1535, allocations: 123.5 kB / 0.7719 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002705/0.1538, allocations: 143.5 kB / 0.772 GB, free: 2.652 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.036e-05/0.1538, allocations: 16 kB / 0.772 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002783/0.1541, allocations: 163.6 kB / 0.7722 GB, free: 2.477 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.319e-05/0.1542, allocations: 83.8 kB / 0.7723 GB, free: 2.395 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001094/0.1543, allocations: 111.5 kB / 0.7724 GB, free: 2.285 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003976/0.1547, allocations: 338.9 kB / 0.7727 GB, free: 1.953 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1548, allocations: 4 kB / 0.7727 GB, free: 1.949 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.302e-06/0.1548, allocations: 0 / 0.7727 GB, free: 1.949 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.1548, allocations: 0 / 0.7727 GB, free: 1.949 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007362/0.1555, allocations: 0.5146 MB / 0.7732 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.085e-05/0.1556, allocations: 12.03 kB / 0.7732 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005612/0.1561, allocations: 76.67 kB / 0.7733 GB, free: 1.297 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002798/0.1564, allocations: 243.9 kB / 0.7735 GB, free: 1.02 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.1564, allocations: 12.75 kB / 0.7735 GB, free: 1.008 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.002e-05/0.1565, allocations: 24.36 kB / 0.7736 GB, free: 0.9844 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004127/0.1569, allocations: 295.5 kB / 0.7738 GB, free: 0.6758 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.1569, allocations: 7.984 kB / 0.7739 GB, free: 0.668 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.409e-05/0.1569, allocations: 8 kB / 0.7739 GB, free: 0.6602 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.921e-05/0.157, allocations: 12.38 kB / 0.7739 GB, free: 0.6484 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002966/0.1573, allocations: 200.9 kB / 0.7741 GB, free: 464 kB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3142/0.4715, allocations: 1.449 MB / 0.7755 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002972/0.4718, allocations: 175.6 kB / 0.7756 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.524e-05/0.4719, allocations: 32.55 kB / 0.7757 GB, free: 13.94 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.036e-05/0.4719, allocations: 1.406 kB / 0.7757 GB, free: 13.94 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.013e-05/0.4719, allocations: 37.97 kB / 0.7757 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 2.705e-06/0.472, allocations: 0 / 0.7757 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7): time 0.0005252/0.4725, allocations: 226.8 kB / 0.7759 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/0.4725, allocations: 58.19 kB / 0.776 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/0.4728, allocations: 203.4 kB / 0.7762 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.4728, allocations: 26.23 kB / 0.7762 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.831e-05/0.4729, allocations: 171.6 kB / 0.7764 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.244e-05/0.4729, allocations: 23.84 kB / 0.7764 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.819e-05/0.473, allocations: 34.06 kB / 0.7764 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.953e-05/0.473, allocations: 325.7 kB / 0.7767 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.454e-05/0.4731, allocations: 33.89 kB / 0.7768 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001002/0.4732, allocations: 101.1 kB / 0.7769 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001679/0.4734, allocations: 157.1 kB / 0.777 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.4734, allocations: 1.625 kB / 0.777 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003222/0.4737, allocations: 185.8 kB / 0.7772 GB, free: 12.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.4738, allocations: 10.3 kB / 0.7772 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.4738, allocations: 9.062 kB / 0.7772 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001766/0.474, allocations: 24.41 kB / 0.7772 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.4741, allocations: 25.14 kB / 0.7773 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008494/0.475, allocations: 1.416 MB / 0.7786 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001331/0.4751, allocations: 24.44 kB / 0.7787 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.322e-05/0.4751, allocations: 6.25 kB / 0.7787 GB, free: 11.52 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001141/0.4752, allocations: 152.6 kB / 0.7788 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.187e-05/0.4753, allocations: 15.67 kB / 0.7788 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.292e-05/0.4753, allocations: 19.75 kB / 0.7789 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.4753, allocations: 1.125 kB / 0.7789 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.4753, allocations: 0.8125 kB / 0.7789 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.4753, allocations: 0.6562 kB / 0.7789 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004822/0.4758, allocations: 453 kB / 0.7793 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.4758, allocations: 0 / 0.7793 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.889e-05/0.4759, allocations: 8.016 kB / 0.7793 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.793e-05/0.476, allocations: 23.69 kB / 0.7793 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.476, allocations: 3.156 kB / 0.7793 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007245/0.4767, allocations: 1.417 MB / 0.7807 GB, free: 9.711 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.4768, allocations: 1.672 kB / 0.7807 GB, free: 9.711 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001999/0.477, allocations: 217.5 kB / 0.7809 GB, free: 9.559 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.535e-05/0.477, allocations: 101.9 kB / 0.781 GB, free: 9.453 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.864e-05/0.4771, allocations: 2.078 kB / 0.781 GB, free: 9.453 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.4772, allocations: 6.531 kB / 0.781 GB, free: 9.453 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.215e-05/0.4772, allocations: 9.578 kB / 0.781 GB, free: 9.449 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.853e-06/0.4772, allocations: 1.562 kB / 0.781 GB, free: 9.449 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001343/0.4773, allocations: 147.6 kB / 0.7812 GB, free: 9.355 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.11e-07/0.4774, allocations: 0 / 0.7812 GB, free: 9.355 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003645/0.4777, allocations: 52.19 kB / 0.7812 GB, free: 9.344 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 9.757e-05/0.4778, allocations: 100.3 kB / 0.7813 GB, free: 9.254 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003626/0.4782, allocations: 206.8 kB / 0.7815 GB, free: 9.113 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4782, allocations: 2.656 kB / 0.7815 GB, free: 9.113 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.4783, allocations: 152.4 kB / 0.7817 GB, free: 8.988 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003461/0.4787, allocations: 36.48 kB / 0.7817 GB, free: 8.98 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000598/0.4793, allocations: 351.5 kB / 0.782 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001984/0.4795, allocations: 0.7513 MB / 0.7828 GB, free: 8.062 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.66e-05/0.4796, allocations: 21.75 kB / 0.7828 GB, free: 8.055 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.074e-05/0.4797, allocations: 15.14 kB / 0.7828 GB, free: 8.047 MB / 0.5606 GB Notification: Performance of SimCode: time 2.01e-07/0.4797, allocations: 4 kB / 0.7828 GB, free: 8.043 MB / 0.5606 GB Notification: Performance of Templates: time 0.005116/0.4848, allocations: 1.787 MB / 0.7845 GB, free: 7.926 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)