Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_latest_Buildings.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.001205/0.001205, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 200 kB / 16.79 MB, free: 6.828 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.51/1.51, allocations: 222.9 MB / 240.5 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.868/2.868, allocations: 461.8 MB / 0.7348 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 68.08 kB / 0.899 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.3169, allocations: 157.4 MB / 1.053 GB, free: 8.316 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005555/0.3225, allocations: 3.122 MB / 1.056 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002379/0.3249, allocations: 1.332 MB / 1.057 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002226/0.3252, allocations: 7.938 kB / 1.057 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001117/0.3264, allocations: 314.9 kB / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004341/0.3268, allocations: 135.4 kB / 1.058 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003799/0.3272, allocations: 127.7 kB / 1.058 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005068/0.3278, allocations: 430.8 kB / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003635/0.3281, allocations: 160.3 kB / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001952/0.3283, allocations: 107.6 kB / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003914/0.3287, allocations: 143.5 kB / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.982e-05/0.3288, allocations: 12 kB / 1.058 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003992/0.3292, allocations: 203.6 kB / 1.059 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001044/0.3293, allocations: 75.8 kB / 1.059 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001423/0.3295, allocations: 107.5 kB / 1.059 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000364/0.3298, allocations: 255.7 kB / 1.059 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3298, allocations: 4 kB / 1.059 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.252e-06/0.3298, allocations: 0 / 1.059 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.226e-06/0.3299, allocations: 0 / 1.059 GB, free: 1.797 MB / 0.8106 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.0008976/0.3308, allocations: 0.5224 MB / 1.06 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.3308, allocations: 15.97 kB / 1.06 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006489/0.3315, allocations: 84.45 kB / 1.06 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003459/0.3318, allocations: 241.5 kB / 1.06 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.3319, allocations: 8.75 kB / 1.06 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.318e-05/0.3319, allocations: 20.38 kB / 1.06 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004396/0.3323, allocations: 303.5 kB / 1.06 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.3324, allocations: 0 / 1.06 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.785e-05/0.3324, allocations: 12 kB / 1.06 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.728e-05/0.3324, allocations: 16.38 kB / 1.06 GB, free: 488 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004237/0.3329, allocations: 200.7 kB / 1.06 GB, free: 288 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001639/0.3345, allocations: 1.464 MB / 1.062 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003754/0.3349, allocations: 175.7 kB / 1.062 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.916e-05/0.335, allocations: 32.84 kB / 1.062 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.4e-05/0.335, allocations: 0 / 1.062 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.657e-05/0.335, allocations: 34.56 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.3351, allocations: 4 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0005304/0.3356, allocations: 227.3 kB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.08e-05/0.3356, allocations: 51.41 kB / 1.062 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002089/0.3359, allocations: 195 kB / 1.063 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.792e-05/0.3359, allocations: 29.7 kB / 1.063 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.292e-05/0.336, allocations: 163.6 kB / 1.063 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.464e-05/0.336, allocations: 27.84 kB / 1.063 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.11e-05/0.3361, allocations: 41.62 kB / 1.063 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001318/0.3362, allocations: 322.8 kB / 1.063 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.051e-05/0.3363, allocations: 35.98 kB / 1.063 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001143/0.3364, allocations: 96.56 kB / 1.063 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002067/0.3366, allocations: 156.4 kB / 1.063 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3366, allocations: 0 / 1.063 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003378/0.337, allocations: 194.1 kB / 1.064 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.337, allocations: 8 kB / 1.064 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.337, allocations: 4.281 kB / 1.064 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001751/0.3372, allocations: 28.84 kB / 1.064 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.3373, allocations: 27.92 kB / 1.064 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001219/0.3386, allocations: 1.323 MB / 1.065 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000137/0.3387, allocations: 23.81 kB / 1.065 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.305e-05/0.3387, allocations: 4 kB / 1.065 GB, free: 11.16 MB / 0.8262 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.0001436/0.3389, allocations: 141.8 kB / 1.065 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.626e-05/0.3389, allocations: 19.75 kB / 1.065 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.955e-05/0.339, allocations: 21.48 kB / 1.065 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.339, allocations: 0 / 1.065 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.339, allocations: 4 kB / 1.065 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.339, allocations: 0 / 1.065 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000588/0.3396, allocations: 443.5 kB / 1.066 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3396, allocations: 0 / 1.066 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.131e-05/0.3397, allocations: 8 kB / 1.066 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.15e-05/0.3397, allocations: 32.78 kB / 1.066 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.3398, allocations: 0 / 1.066 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001014/0.3408, allocations: 1.315 MB / 1.067 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.3408, allocations: 7.922 kB / 1.067 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000232/0.341, allocations: 204.3 kB / 1.067 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.225e-05/0.3411, allocations: 96.91 kB / 1.067 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.184e-05/0.3412, allocations: 3.938 kB / 1.067 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001173/0.3413, allocations: 8 kB / 1.067 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.53e-05/0.3413, allocations: 8.047 kB / 1.067 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-06/0.3413, allocations: 4 kB / 1.067 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001325/0.3415, allocations: 152.7 kB / 1.067 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3415, allocations: 0 / 1.067 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003522/0.3418, allocations: 51.84 kB / 1.067 GB, free: 8.426 MB / 0.8262 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 0.0001266/0.342, allocations: 99.94 kB / 1.067 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000384/0.3424, allocations: 206.8 kB / 1.068 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3424, allocations: 0 / 1.068 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001937/0.3426, allocations: 154.5 kB / 1.068 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003824/0.343, allocations: 31.75 kB / 1.068 GB, free: 7.91 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007141/0.3437, allocations: 479.6 kB / 1.068 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003174/0.344, allocations: 0.7439 MB / 1.069 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.272e-05/0.3441, allocations: 19.42 kB / 1.069 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.3441, allocations: 3.938 kB / 1.069 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of Templates: time 0.004995/0.3491, allocations: 2.96 MB / 1.072 GB, free: 3.668 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches