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.001396/0.001396, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001379/0.001379, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.329/1.329, allocations: 222.9 MB / 240.9 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002246/0.002246, allocations: 298 kB / 291.3 MB, free: 14.54 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9449/0.9449, allocations: 169.3 MB / 0.4988 GB, free: 4.516 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003099/0.003099, allocations: 94.8 kB / 0.5959 GB, free: 15.17 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.199/0.2021, allocations: 86.97 MB / 0.6808 GB, free: 8.203 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.005521/0.2077, allocations: 3.061 MB / 0.6838 GB, free: 5.121 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00227/0.21, allocations: 1.332 MB / 0.6851 GB, free: 3.781 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002221/0.2102, allocations: 7.938 kB / 0.6851 GB, free: 3.773 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001051/0.2113, allocations: 333.6 kB / 0.6855 GB, free: 3.449 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004249/0.2117, allocations: 143.3 kB / 0.6856 GB, free: 3.309 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004253/0.2122, allocations: 139.6 kB / 0.6857 GB, free: 3.172 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004208/0.2126, allocations: 299 kB / 0.686 GB, free: 2.879 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004588/0.2131, allocations: 240.3 kB / 0.6862 GB, free: 2.648 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001892/0.2133, allocations: 123.5 kB / 0.6864 GB, free: 2.527 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003305/0.2136, allocations: 139.5 kB / 0.6865 GB, free: 2.391 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.999e-05/0.2137, allocations: 20 kB / 0.6865 GB, free: 2.371 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003444/0.214, allocations: 163.7 kB / 0.6867 GB, free: 2.211 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.2141, allocations: 83.78 kB / 0.6867 GB, free: 2.129 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001357/0.2143, allocations: 107.5 kB / 0.6868 GB, free: 2.023 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004425/0.2147, allocations: 338.9 kB / 0.6872 GB, free: 1.691 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.2147, allocations: 8 kB / 0.6872 GB, free: 1.684 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2148, allocations: 0 / 0.6872 GB, free: 1.684 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.075e-05/0.2148, allocations: 0 / 0.6872 GB, free: 1.684 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.0008408/0.2156, allocations: 0.5107 MB / 0.6877 GB, free: 1.121 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.2157, allocations: 8.031 kB / 0.6877 GB, free: 1.113 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006138/0.2163, allocations: 76.58 kB / 0.6878 GB, free: 1.039 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003685/0.2167, allocations: 243.9 kB / 0.688 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.937e-05/0.2167, allocations: 12.75 kB / 0.688 GB, free: 0.75 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.41e-05/0.2167, allocations: 20.38 kB / 0.688 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005205/0.2173, allocations: 299.5 kB / 0.6883 GB, free: 428 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.2173, allocations: 0 / 0.6883 GB, free: 428 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.627e-05/0.2173, allocations: 8 kB / 0.6883 GB, free: 420 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.391e-05/0.2174, allocations: 24.36 kB / 0.6883 GB, free: 396 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003278/0.2177, allocations: 196.9 kB / 0.6885 GB, free: 200 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3067/0.5244, allocations: 1.449 MB / 0.6899 GB, free: 17.24 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002318/0.5247, allocations: 172.6 kB / 0.6901 GB, free: 17.12 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.656e-05/0.5247, allocations: 44.97 kB / 0.6901 GB, free: 17.12 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.753e-05/0.5248, allocations: 1.359 kB / 0.6901 GB, free: 17.12 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.616e-05/0.5248, allocations: 38.59 kB / 0.6902 GB, free: 17.07 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.894e-06/0.5248, allocations: 0 / 0.6902 GB, free: 17.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004433/0.5252, allocations: 225.6 kB / 0.6904 GB, free: 16.94 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.995e-05/0.5253, allocations: 53.17 kB / 0.6904 GB, free: 16.88 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001676/0.5254, allocations: 197.7 kB / 0.6906 GB, free: 16.77 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.029e-05/0.5255, allocations: 26.95 kB / 0.6907 GB, free: 16.74 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.657e-05/0.5255, allocations: 163.3 kB / 0.6908 GB, free: 16.63 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.809e-05/0.5256, allocations: 24.97 kB / 0.6908 GB, free: 16.62 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.462e-05/0.5256, allocations: 38.89 kB / 0.6909 GB, free: 16.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.474e-05/0.5257, allocations: 325.5 kB / 0.6912 GB, free: 16.29 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.846e-05/0.5257, allocations: 33.7 kB / 0.6912 GB, free: 16.29 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.539e-05/0.5258, allocations: 103.9 kB / 0.6913 GB, free: 16.21 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001428/0.526, allocations: 148 kB / 0.6915 GB, free: 16.12 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.526, allocations: 5.188 kB / 0.6915 GB, free: 16.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002871/0.5263, allocations: 195.6 kB / 0.6917 GB, free: 16.05 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.5263, allocations: 9.219 kB / 0.6917 GB, free: 16.05 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.5263, allocations: 2.562 kB / 0.6917 GB, free: 16.05 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001549/0.5265, allocations: 26.02 kB / 0.6917 GB, free: 16.05 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.5266, allocations: 24.98 kB / 0.6917 GB, free: 16.05 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007681/0.5274, allocations: 1.427 MB / 0.6931 GB, free: 14.69 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001171/0.5275, allocations: 17.22 kB / 0.6931 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.337e-05/0.5275, allocations: 6.031 kB / 0.6931 GB, free: 14.68 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.894e-05/0.5276, allocations: 156.2 kB / 0.6933 GB, free: 14.56 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.83e-05/0.5277, allocations: 12.14 kB / 0.6933 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.03e-05/0.5277, allocations: 20.58 kB / 0.6933 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.5277, allocations: 1.188 kB / 0.6933 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.5277, allocations: 1.844 kB / 0.6933 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.5277, allocations: 0 / 0.6933 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004583/0.5282, allocations: 448.5 kB / 0.6937 GB, free: 14.21 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.5282, allocations: 1.094 kB / 0.6937 GB, free: 14.21 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.832e-05/0.5283, allocations: 11.02 kB / 0.6938 GB, free: 14.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.197e-05/0.5283, allocations: 23.27 kB / 0.6938 GB, free: 14.19 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/0.5284, allocations: 5.125 kB / 0.6938 GB, free: 14.19 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006342/0.529, allocations: 1.414 MB / 0.6952 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.529, allocations: 0.6094 kB / 0.6952 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001792/0.5292, allocations: 212 kB / 0.6954 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.238e-05/0.5293, allocations: 102.1 kB / 0.6955 GB, free: 12.49 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.988e-05/0.5293, allocations: 1.375 kB / 0.6955 GB, free: 12.49 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.5294, allocations: 3.531 kB / 0.6955 GB, free: 12.49 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.401e-05/0.5294, allocations: 9.312 kB / 0.6955 GB, free: 12.49 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.5294, allocations: 1.719 kB / 0.6955 GB, free: 12.49 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001097/0.5296, allocations: 144.4 kB / 0.6956 GB, free: 12.39 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5296, allocations: 0 / 0.6956 GB, free: 12.39 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003216/0.5299, allocations: 57.47 kB / 0.6957 GB, free: 12.38 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.971e-05/0.53, allocations: 100.8 kB / 0.6958 GB, free: 12.29 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003186/0.5303, allocations: 206.2 kB / 0.696 GB, free: 12.15 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5303, allocations: 4.5 kB / 0.696 GB, free: 12.15 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001246/0.5304, allocations: 152.7 kB / 0.6961 GB, free: 12.03 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003414/0.5308, allocations: 39.8 kB / 0.6961 GB, free: 12.01 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005392/0.5313, allocations: 393.3 kB / 0.6965 GB, free: 11.75 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000178/0.5315, allocations: 0.7562 MB / 0.6973 GB, free: 11.04 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.518e-05/0.5316, allocations: 16.25 kB / 0.6973 GB, free: 11.04 MB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.5316, allocations: 0 / 0.6973 GB, free: 11.04 MB / 494.1 MB Notification: Performance of Templates: time 0.005183/0.5368, allocations: 2.976 MB / 0.7002 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)