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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.00117/0.00117, allocations: 108 kB / 15.61 MB, free: 148 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.001277/0.001277, allocations: 197.1 kB / 16.53 MB, free: 6.656 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.342/1.342, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.787/2.787, allocations: 472.6 MB / 0.7451 GB, free: 4.719 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001506, allocations: 64.38 kB / 0.912 GB, free: 33.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3249, allocations: 159.9 MB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.00526/0.3302, allocations: 3.072 MB / 1.071 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002355/0.3326, allocations: 1.328 MB / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002353/0.3329, allocations: 4 kB / 1.073 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.00118/0.3341, allocations: 342.7 kB / 1.073 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004475/0.3346, allocations: 143.2 kB / 1.073 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004449/0.335, allocations: 131.7 kB / 1.073 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004255/0.3355, allocations: 307 kB / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000467/0.3359, allocations: 236.5 kB / 1.074 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001721/0.3361, allocations: 127.5 kB / 1.074 GB, free: 4.777 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002976/0.3364, allocations: 131.5 kB / 1.074 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.701e-05/0.3365, allocations: 20 kB / 1.074 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003349/0.3368, allocations: 171.6 kB / 1.074 GB, free: 4.461 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.446e-05/0.3369, allocations: 83.8 kB / 1.074 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001367/0.3371, allocations: 111.5 kB / 1.074 GB, free: 4.27 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000404/0.3375, allocations: 327 kB / 1.075 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.3375, allocations: 0 / 1.075 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3375, allocations: 0 / 1.075 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.645e-06/0.3375, allocations: 0 / 1.075 GB, free: 3.949 MB / 0.8262 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.0008615/0.3384, allocations: 0.5147 MB / 1.075 GB, free: 3.383 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.3384, allocations: 11.97 kB / 1.075 GB, free: 3.371 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005913/0.339, allocations: 84.58 kB / 1.075 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002833/0.3393, allocations: 237.5 kB / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.3393, allocations: 20.73 kB / 1.075 GB, free: 3 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.386e-05/0.3394, allocations: 20.36 kB / 1.075 GB, free: 2.98 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004331/0.3398, allocations: 303.3 kB / 1.076 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.3398, allocations: 4 kB / 1.076 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.511e-05/0.3399, allocations: 4 kB / 1.076 GB, free: 2.656 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.235e-05/0.3399, allocations: 16.36 kB / 1.076 GB, free: 2.641 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002983/0.3402, allocations: 196.9 kB / 1.076 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001407/0.3416, allocations: 1.464 MB / 1.077 GB, free: 0.8203 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002545/0.3419, allocations: 179.6 kB / 1.077 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.782e-05/0.342, allocations: 28.91 kB / 1.078 GB, free: 0.5859 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.211e-05/0.342, allocations: 3.984 kB / 1.078 GB, free: 0.582 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.189e-05/0.342, allocations: 38.55 kB / 1.078 GB, free: 0.5352 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.482e-06/0.342, allocations: 3.938 kB / 1.078 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004693/0.3425, allocations: 231.5 kB / 1.078 GB, free: 284 kB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.114e-05/0.3425, allocations: 51.41 kB / 1.078 GB, free: 220 kB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001935/0.3427, allocations: 206.7 kB / 1.078 GB, free: 4 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.3428, allocations: 29.7 kB / 1.078 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.393e-05/0.3429, allocations: 163.6 kB / 1.078 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.991e-05/0.3429, allocations: 27.64 kB / 1.078 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.501e-05/0.343, allocations: 33.72 kB / 1.078 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.3431, allocations: 326.8 kB / 1.079 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.349e-05/0.3432, allocations: 35.97 kB / 1.079 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.489e-05/0.3433, allocations: 102.4 kB / 1.079 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001696/0.3434, allocations: 144.4 kB / 1.079 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3434, allocations: 0 / 1.079 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002984/0.3437, allocations: 190.2 kB / 1.079 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.3438, allocations: 8 kB / 1.079 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.3438, allocations: 0 / 1.079 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001683/0.344, allocations: 32.83 kB / 1.079 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.3441, allocations: 23.94 kB / 1.079 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001055/0.3451, allocations: 1.422 MB / 1.08 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000121/0.3453, allocations: 24.11 kB / 1.081 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-06/0.3453, allocations: 7.938 kB / 1.081 GB, free: 13.21 MB / 0.8419 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.0001365/0.3454, allocations: 146.3 kB / 1.081 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.001e-05/0.3455, allocations: 15.81 kB / 1.081 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.857e-05/0.3455, allocations: 21.39 kB / 1.081 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.3455, allocations: 0 / 1.081 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.3455, allocations: 4 kB / 1.081 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.3455, allocations: 0 / 1.081 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000487/0.346, allocations: 447.2 kB / 1.081 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.798e-06/0.346, allocations: 3.984 kB / 1.081 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.862e-05/0.3461, allocations: 8 kB / 1.081 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.191e-05/0.3462, allocations: 28.78 kB / 1.081 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.3462, allocations: 0 / 1.081 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009419/0.3471, allocations: 1.422 MB / 1.083 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3472, allocations: 0 / 1.083 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002091/0.3474, allocations: 216.1 kB / 1.083 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.138e-05/0.3474, allocations: 92.92 kB / 1.083 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.208e-05/0.3475, allocations: 11.92 kB / 1.083 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.3476, allocations: 4 kB / 1.083 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.678e-05/0.3476, allocations: 8.062 kB / 1.083 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.28e-06/0.3476, allocations: 4 kB / 1.083 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001225/0.3478, allocations: 148.3 kB / 1.083 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3478, allocations: 0 / 1.083 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003306/0.3481, allocations: 51.84 kB / 1.083 GB, free: 10.36 MB / 0.8419 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.0001211/0.3482, allocations: 103.7 kB / 1.083 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003803/0.3486, allocations: 218.7 kB / 1.083 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.3486, allocations: 0 / 1.083 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001464/0.3488, allocations: 150.7 kB / 1.084 GB, free: 9.863 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000374/0.3492, allocations: 31.45 kB / 1.084 GB, free: 9.836 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006271/0.3498, allocations: 351.1 kB / 1.084 GB, free: 9.469 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002993/0.3501, allocations: 0.7514 MB / 1.085 GB, free: 8.691 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.593e-05/0.3502, allocations: 29.47 kB / 1.085 GB, free: 8.664 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.208e-05/0.3503, allocations: 15.44 kB / 1.085 GB, free: 8.648 MB / 0.8419 GB Notification: Performance of SimCode: time 2.11e-07/0.3503, allocations: 0 / 1.085 GB, free: 8.648 MB / 0.8419 GB Notification: Performance of Templates: time 0.004649/0.3549, allocations: 1.739 MB / 1.086 GB, free: 6.934 MB / 0.8419 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/jenkins/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