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.001119/0.001119, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.001107/0.001107, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.299/1.299, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002162/0.002162, allocations: 291.6 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9171/0.9171, allocations: 169.3 MB / 0.4989 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001722/0.001722, allocations: 91.77 kB / 0.5967 GB, free: 14.48 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1394, allocations: 86.97 MB / 0.6816 GB, free: 7.488 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.00414/0.1436, allocations: 3.06 MB / 0.6846 GB, free: 4.41 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.1454, allocations: 1.324 MB / 0.6859 GB, free: 3.078 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.177e-05/0.1455, allocations: 8 kB / 0.6859 GB, free: 3.07 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009289/0.1465, allocations: 341.6 kB / 0.6862 GB, free: 2.738 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002794/0.1468, allocations: 139.2 kB / 0.6864 GB, free: 2.602 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002885/0.1471, allocations: 131.7 kB / 0.6865 GB, free: 2.473 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003141/0.1474, allocations: 318.9 kB / 0.6868 GB, free: 2.16 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003664/0.1478, allocations: 228.3 kB / 0.687 GB, free: 1.941 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000139/0.1479, allocations: 127.5 kB / 0.6871 GB, free: 1.816 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002401/0.1482, allocations: 135.5 kB / 0.6873 GB, free: 1.684 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.09e-05/0.1482, allocations: 20 kB / 0.6873 GB, free: 1.664 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002512/0.1485, allocations: 175.6 kB / 0.6874 GB, free: 1.492 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.837e-05/0.1485, allocations: 75.8 kB / 0.6875 GB, free: 1.418 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001101/0.1487, allocations: 107.5 kB / 0.6876 GB, free: 1.312 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003444/0.149, allocations: 338.9 kB / 0.6879 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.227e-06/0.149, allocations: 0 / 0.6879 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.149, allocations: 0 / 0.6879 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.149, allocations: 0 / 0.6879 GB, free: 0.9805 MB / 494.1 MB 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.0006779/0.1497, allocations: 0.5108 MB / 0.6884 GB, free: 428 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.026e-05/0.1498, allocations: 12.03 kB / 0.6884 GB, free: 416 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005627/0.1503, allocations: 84.58 kB / 0.6885 GB, free: 332 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002899/0.1506, allocations: 241.1 kB / 0.6888 GB, free: 52 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.1507, allocations: 16.75 kB / 0.6888 GB, free: 36 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.151e-05/0.1507, allocations: 20.36 kB / 0.6888 GB, free: 16 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2307/0.3814, allocations: 293.4 kB / 0.6891 GB, free: 18.47 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.3815, allocations: 1.875 kB / 0.6891 GB, free: 18.47 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.754e-05/0.3815, allocations: 9.812 kB / 0.6891 GB, free: 18.47 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.155e-05/0.3815, allocations: 21.25 kB / 0.6891 GB, free: 18.47 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002997/0.3818, allocations: 192.2 kB / 0.6893 GB, free: 18.47 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001272/0.3831, allocations: 1.469 MB / 0.6907 GB, free: 17.3 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002163/0.3834, allocations: 174.6 kB / 0.6909 GB, free: 17.19 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.34e-05/0.3834, allocations: 32.8 kB / 0.6909 GB, free: 17.18 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.476e-06/0.3834, allocations: 0.9844 kB / 0.6909 GB, free: 17.18 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.489e-05/0.3834, allocations: 35.83 kB / 0.691 GB, free: 17.14 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 2.064e-06/0.3835, allocations: 0 / 0.691 GB, free: 17.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004385/0.3839, allocations: 226.6 kB / 0.6912 GB, free: 17 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.055e-05/0.3839, allocations: 54.72 kB / 0.6912 GB, free: 16.94 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001765/0.3841, allocations: 199.1 kB / 0.6914 GB, free: 16.83 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 9.949e-06/0.3841, allocations: 26.61 kB / 0.6914 GB, free: 16.8 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.128e-05/0.3842, allocations: 167.6 kB / 0.6916 GB, free: 16.68 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.697e-05/0.3842, allocations: 24.91 kB / 0.6916 GB, free: 16.67 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.473e-05/0.3843, allocations: 37.14 kB / 0.6917 GB, free: 16.65 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.665e-05/0.3843, allocations: 328.1 kB / 0.692 GB, free: 16.34 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.339e-05/0.3844, allocations: 36.39 kB / 0.692 GB, free: 16.32 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.943e-05/0.3845, allocations: 102.8 kB / 0.6921 GB, free: 16.23 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001421/0.3846, allocations: 149.3 kB / 0.6922 GB, free: 16.11 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3847, allocations: 3.5 kB / 0.6922 GB, free: 16.11 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002829/0.3849, allocations: 184.8 kB / 0.6924 GB, free: 16.02 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.385, allocations: 6.703 kB / 0.6924 GB, free: 16.02 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.385, allocations: 2.094 kB / 0.6924 GB, free: 16.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000149/0.3851, allocations: 34.77 kB / 0.6925 GB, free: 16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.3853, allocations: 28.47 kB / 0.6925 GB, free: 16 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007305/0.386, allocations: 1.426 MB / 0.6939 GB, free: 14.59 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.3861, allocations: 21.31 kB / 0.6939 GB, free: 14.57 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.33e-05/0.3862, allocations: 7.156 kB / 0.6939 GB, free: 14.57 MB / 494.1 MB 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 9.656e-05/0.3863, allocations: 154.9 kB / 0.6941 GB, free: 14.43 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.686e-05/0.3863, allocations: 13.19 kB / 0.6941 GB, free: 14.43 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.891e-05/0.3863, allocations: 15.22 kB / 0.6941 GB, free: 14.42 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3863, allocations: 1.359 kB / 0.6941 GB, free: 14.42 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-06/0.3863, allocations: 0.9375 kB / 0.6941 GB, free: 14.42 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.3864, allocations: 0.8438 kB / 0.6941 GB, free: 14.42 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000443/0.3868, allocations: 447.7 kB / 0.6945 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3868, allocations: 3.5 kB / 0.6945 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.941e-05/0.3869, allocations: 7.656 kB / 0.6945 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.204e-05/0.3869, allocations: 23.08 kB / 0.6945 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.387, allocations: 13.75 kB / 0.6946 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000631/0.3876, allocations: 1.405 MB / 0.6959 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3876, allocations: 0 / 0.6959 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001762/0.3878, allocations: 216.2 kB / 0.6961 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.304e-05/0.3879, allocations: 97.03 kB / 0.6962 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.95e-05/0.3879, allocations: 1.297 kB / 0.6962 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.388, allocations: 7.031 kB / 0.6962 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.445e-05/0.388, allocations: 13.62 kB / 0.6963 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.3881, allocations: 5.812 kB / 0.6963 GB, free: 12.34 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000106/0.3882, allocations: 145.6 kB / 0.6964 GB, free: 12.25 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3882, allocations: 0 / 0.6964 GB, free: 12.25 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003208/0.3885, allocations: 51.81 kB / 0.6964 GB, free: 12.24 MB / 494.1 MB 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 7.797e-05/0.3886, allocations: 99.36 kB / 0.6965 GB, free: 12.15 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003038/0.3889, allocations: 206 kB / 0.6967 GB, free: 12.01 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3889, allocations: 0 / 0.6967 GB, free: 12.01 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.389, allocations: 148.2 kB / 0.6969 GB, free: 11.89 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003372/0.3894, allocations: 37.62 kB / 0.6969 GB, free: 11.88 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005174/0.3899, allocations: 363.4 kB / 0.6973 GB, free: 11.66 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001726/0.3901, allocations: 0.7476 MB / 0.698 GB, free: 10.96 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.288e-05/0.3902, allocations: 25.05 kB / 0.698 GB, free: 10.95 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.031e-05/0.3902, allocations: 14.38 kB / 0.698 GB, free: 10.95 MB / 494.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3902, allocations: 4 kB / 0.698 GB, free: 10.94 MB / 494.1 MB Notification: Performance of Templates: time 0.004717/0.3949, allocations: 1.754 MB / 0.6997 GB, free: 10.82 MB / 494.1 MB 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)