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.006363/0.006363, allocations: 98.95 kB / 15.73 MB, free: 6.055 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.001518/0.001518, allocations: 201.8 kB / 16.68 MB, free: 5.977 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.302/1.302, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002102/0.002102, allocations: 282.6 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9208/0.9208, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001652/0.001652, allocations: 99.86 kB / 0.6814 GB, free: 15.5 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1442, allocations: 86.97 MB / 0.7664 GB, free: 8.457 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.003848/0.1481, allocations: 3.065 MB / 0.7694 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001683/0.1498, allocations: 1.34 MB / 0.7707 GB, free: 4.031 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.703e-05/0.1499, allocations: 4 kB / 0.7707 GB, free: 4.027 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0008982/0.1508, allocations: 322.7 kB / 0.771 GB, free: 3.711 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002612/0.1511, allocations: 151.3 kB / 0.7711 GB, free: 3.562 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002741/0.1513, allocations: 134.6 kB / 0.7713 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002943/0.1516, allocations: 314.7 kB / 0.7716 GB, free: 3.125 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003507/0.152, allocations: 232.2 kB / 0.7718 GB, free: 2.898 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.1521, allocations: 127.5 kB / 0.7719 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.1524, allocations: 143.5 kB / 0.772 GB, free: 2.633 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.172e-05/0.1524, allocations: 20 kB / 0.7721 GB, free: 2.613 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002391/0.1527, allocations: 163.6 kB / 0.7722 GB, free: 2.453 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.28e-05/0.1528, allocations: 83.78 kB / 0.7723 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 9.698e-05/0.1529, allocations: 107.5 kB / 0.7724 GB, free: 2.266 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003554/0.1532, allocations: 338.8 kB / 0.7727 GB, free: 1.934 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.1532, allocations: 0 / 0.7727 GB, free: 1.934 MB / 0.5606 GB Notification: Performance of FrontEnd: time 9.72e-07/0.1532, allocations: 0 / 0.7727 GB, free: 1.934 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.1532, allocations: 0 / 0.7727 GB, free: 1.934 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.0006415/0.1539, allocations: 0.522 MB / 0.7732 GB, free: 1.359 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 2.75e-05/0.1539, allocations: 12.03 kB / 0.7732 GB, free: 1.348 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005335/0.1545, allocations: 80.72 kB / 0.7733 GB, free: 1.27 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002547/0.1547, allocations: 244 kB / 0.7735 GB, free: 0.9922 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.48e-05/0.1547, allocations: 12.75 kB / 0.7736 GB, free: 0.9805 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.59e-05/0.1548, allocations: 24.38 kB / 0.7736 GB, free: 0.957 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003839/0.1552, allocations: 299.5 kB / 0.7739 GB, free: 0.6445 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-06/0.1552, allocations: 0 / 0.7739 GB, free: 0.6445 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.387e-05/0.1552, allocations: 12 kB / 0.7739 GB, free: 0.6328 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.06e-05/0.1553, allocations: 16.36 kB / 0.7739 GB, free: 0.6172 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002784/0.1555, allocations: 200.9 kB / 0.7741 GB, free: 432 kB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3046/0.4601, allocations: 1.449 MB / 0.7755 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002463/0.4604, allocations: 180.3 kB / 0.7757 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.057e-05/0.4605, allocations: 34.11 kB / 0.7757 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.947e-06/0.4605, allocations: 3.188 kB / 0.7757 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.788e-05/0.4605, allocations: 32.42 kB / 0.7757 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.924e-06/0.4605, allocations: 0 / 0.7757 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7): time 0.0004547/0.461, allocations: 230.4 kB / 0.776 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.892e-05/0.461, allocations: 52.97 kB / 0.776 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001733/0.4612, allocations: 201.2 kB / 0.7762 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.09e-05/0.4612, allocations: 26.42 kB / 0.7762 GB, free: 13.53 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.011e-05/0.4613, allocations: 167.8 kB / 0.7764 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.981e-05/0.4613, allocations: 30.67 kB / 0.7764 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.651e-05/0.4614, allocations: 34.92 kB / 0.7764 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.626e-05/0.4615, allocations: 328.7 kB / 0.7768 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.441e-05/0.4615, allocations: 33.42 kB / 0.7768 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.227e-05/0.4616, allocations: 104.7 kB / 0.7769 GB, free: 13 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001492/0.4618, allocations: 149.5 kB / 0.777 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.4618, allocations: 2.062 kB / 0.777 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002843/0.4621, allocations: 194.3 kB / 0.7772 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.4621, allocations: 9.375 kB / 0.7772 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.4621, allocations: 4.469 kB / 0.7772 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001548/0.4623, allocations: 24.38 kB / 0.7773 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.4624, allocations: 29.22 kB / 0.7773 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007459/0.4631, allocations: 1.415 MB / 0.7787 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.4633, allocations: 24.05 kB / 0.7787 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.4633, allocations: 11.41 kB / 0.7787 GB, free: 11.48 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.0001026/0.4634, allocations: 149.9 kB / 0.7788 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.577e-05/0.4634, allocations: 16.05 kB / 0.7789 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.997e-05/0.4635, allocations: 19.81 kB / 0.7789 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.4635, allocations: 0 / 0.7789 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.4635, allocations: 0.9375 kB / 0.7789 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.4635, allocations: 4.703 kB / 0.7789 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004115/0.4639, allocations: 442.6 kB / 0.7793 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.4639, allocations: 1.875 kB / 0.7793 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.641e-05/0.464, allocations: 10.61 kB / 0.7793 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.088e-05/0.464, allocations: 30.53 kB / 0.7793 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.464, allocations: 2.906 kB / 0.7793 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006352/0.4647, allocations: 1.416 MB / 0.7807 GB, free: 9.68 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4647, allocations: 7.656 kB / 0.7807 GB, free: 9.676 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001841/0.4649, allocations: 211.8 kB / 0.7809 GB, free: 9.527 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.819e-05/0.465, allocations: 98.16 kB / 0.781 GB, free: 9.426 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.929e-05/0.465, allocations: 3.625 kB / 0.781 GB, free: 9.426 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.4651, allocations: 4.422 kB / 0.781 GB, free: 9.426 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.996e-05/0.4651, allocations: 12.5 kB / 0.7811 GB, free: 9.422 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.762e-06/0.4651, allocations: 5.469 kB / 0.7811 GB, free: 9.422 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001059/0.4652, allocations: 143.4 kB / 0.7812 GB, free: 9.328 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.4652, allocations: 0 / 0.7812 GB, free: 9.328 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003364/0.4656, allocations: 52.73 kB / 0.7812 GB, free: 9.32 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 8.05e-05/0.4657, allocations: 101 kB / 0.7813 GB, free: 9.227 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003077/0.466, allocations: 208.5 kB / 0.7815 GB, free: 9.09 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.466, allocations: 3.938 kB / 0.7815 GB, free: 9.086 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.4661, allocations: 142.2 kB / 0.7817 GB, free: 8.969 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003326/0.4665, allocations: 37.27 kB / 0.7817 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005004/0.467, allocations: 354.1 kB / 0.7821 GB, free: 8.742 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000188/0.4672, allocations: 0.7527 MB / 0.7828 GB, free: 8.035 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 8.284e-05/0.4673, allocations: 25.88 kB / 0.7828 GB, free: 8.027 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.931e-05/0.4673, allocations: 15.16 kB / 0.7828 GB, free: 8.02 MB / 0.5606 GB Notification: Performance of SimCode: time 2.51e-07/0.4673, allocations: 0 / 0.7828 GB, free: 8.02 MB / 0.5606 GB Notification: Performance of Templates: time 0.004304/0.4716, allocations: 1.784 MB / 0.7846 GB, free: 7.906 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)