Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.007985/0.007985, allocations: 95.61 kB / 15.73 MB, free: 6.047 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.001387/0.001388, allocations: 197.7 kB / 16.67 MB, free: 5.973 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.462/1.462, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.766/2.766, allocations: 437 MB / 0.7105 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 67.91 kB / 1.019 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3311, allocations: 151.6 MB / 1.167 GB, free: 6.82 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004478/0.3356, allocations: 3.071 MB / 1.17 GB, free: 3.727 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002183/0.3378, allocations: 1.328 MB / 1.171 GB, free: 2.391 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000156/0.338, allocations: 4 kB / 1.171 GB, free: 2.387 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.000993/0.339, allocations: 346.6 kB / 1.171 GB, free: 2.047 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0003185/0.3393, allocations: 139.3 kB / 1.171 GB, free: 1.91 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003224/0.3397, allocations: 135.6 kB / 1.171 GB, free: 1.777 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003192/0.34, allocations: 315 kB / 1.172 GB, free: 1.469 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004284/0.3404, allocations: 232.2 kB / 1.172 GB, free: 1.242 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001355/0.3406, allocations: 127.5 kB / 1.172 GB, free: 1.117 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002958/0.3409, allocations: 131.5 kB / 1.172 GB, free: 0.9883 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.769e-05/0.3409, allocations: 20 kB / 1.172 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002882/0.3412, allocations: 171.6 kB / 1.172 GB, free: 0.8008 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 9.319e-05/0.3413, allocations: 75.8 kB / 1.173 GB, free: 0.7266 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.3415, allocations: 103.5 kB / 1.173 GB, free: 0.625 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.00043/0.3419, allocations: 338.8 kB / 1.173 GB, free: 300 kB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3419, allocations: 4 kB / 1.173 GB, free: 296 kB / 0.92 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3419, allocations: 0 / 1.173 GB, free: 296 kB / 0.92 GB Notification: Performance of Transformations before backend: time 6.433e-06/0.3419, allocations: 0 / 1.173 GB, free: 296 kB / 0.92 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.0008029/0.3427, allocations: 0.5298 MB / 1.173 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.3428, allocations: 8.031 kB / 1.173 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005483/0.3433, allocations: 84.72 kB / 1.174 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002845/0.3436, allocations: 238.3 kB / 1.174 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.3437, allocations: 24.67 kB / 1.174 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.071e-05/0.3437, allocations: 16.38 kB / 1.174 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004329/0.3441, allocations: 295.6 kB / 1.174 GB, free: 15 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.3442, allocations: 0 / 1.174 GB, free: 15 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.988e-05/0.3442, allocations: 12 kB / 1.174 GB, free: 14.99 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.274e-05/0.3442, allocations: 20.3 kB / 1.174 GB, free: 14.97 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000296/0.3445, allocations: 193 kB / 1.174 GB, free: 14.78 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001387/0.3459, allocations: 1.468 MB / 1.176 GB, free: 13.15 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002411/0.3462, allocations: 175.7 kB / 1.176 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.75e-05/0.3463, allocations: 32.84 kB / 1.176 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.056e-05/0.3463, allocations: 0 / 1.176 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/0.3463, allocations: 38.56 kB / 1.176 GB, free: 12.87 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 8.71e-07/0.3463, allocations: 0 / 1.176 GB, free: 12.87 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0004477/0.3468, allocations: 223.5 kB / 1.176 GB, free: 12.62 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.947e-05/0.3468, allocations: 59.5 kB / 1.176 GB, free: 12.55 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001887/0.347, allocations: 207.3 kB / 1.176 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.347, allocations: 29.7 kB / 1.176 GB, free: 12.3 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.3471, allocations: 168 kB / 1.177 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.985e-05/0.3472, allocations: 27.75 kB / 1.177 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.365e-05/0.3472, allocations: 33.7 kB / 1.177 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.3473, allocations: 330.8 kB / 1.177 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.933e-05/0.3474, allocations: 39.92 kB / 1.177 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.288e-05/0.3475, allocations: 98.44 kB / 1.177 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001681/0.3477, allocations: 144.4 kB / 1.177 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.3477, allocations: 0 / 1.177 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002916/0.348, allocations: 190.2 kB / 1.177 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.348, allocations: 8 kB / 1.177 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.348, allocations: 0 / 1.177 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001591/0.3482, allocations: 32.78 kB / 1.177 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.3483, allocations: 32.2 kB / 1.178 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00106/0.3494, allocations: 1.418 MB / 1.179 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001167/0.3495, allocations: 27.81 kB / 1.179 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.3495, allocations: 4 kB / 1.179 GB, free: 9.543 MB / 0.9356 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.0001199/0.3497, allocations: 149.7 kB / 1.179 GB, free: 9.387 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.376e-05/0.3497, allocations: 11.95 kB / 1.179 GB, free: 9.375 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.147e-05/0.3498, allocations: 21.39 kB / 1.179 GB, free: 9.352 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.3498, allocations: 0 / 1.179 GB, free: 9.352 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.3498, allocations: 8.109 kB / 1.179 GB, free: 9.344 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.207e-06/0.3498, allocations: 3.984 kB / 1.179 GB, free: 9.34 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004832/0.3503, allocations: 447.3 kB / 1.18 GB, free: 8.844 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.3503, allocations: 3.938 kB / 1.18 GB, free: 8.84 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.615e-05/0.3503, allocations: 8 kB / 1.18 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.723e-05/0.3504, allocations: 24.84 kB / 1.18 GB, free: 8.805 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.3504, allocations: 0 / 1.18 GB, free: 8.805 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009019/0.3513, allocations: 1.422 MB / 1.181 GB, free: 7.242 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3513, allocations: 0 / 1.181 GB, free: 7.242 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002001/0.3515, allocations: 212.2 kB / 1.181 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.722e-05/0.3516, allocations: 104.9 kB / 1.181 GB, free: 6.895 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.734e-05/0.3516, allocations: 0 / 1.181 GB, free: 6.895 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.3518, allocations: 8 kB / 1.181 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.669e-05/0.3518, allocations: 12.05 kB / 1.181 GB, free: 6.875 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.53e-06/0.3518, allocations: 0 / 1.181 GB, free: 6.875 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001144/0.3519, allocations: 143.2 kB / 1.181 GB, free: 6.734 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3519, allocations: 0 / 1.181 GB, free: 6.734 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003275/0.3523, allocations: 51.89 kB / 1.181 GB, free: 6.684 MB / 0.9356 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.0001043/0.3524, allocations: 95.25 kB / 1.182 GB, free: 6.578 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003939/0.3528, allocations: 215.1 kB / 1.182 GB, free: 6.355 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3528, allocations: 0 / 1.182 GB, free: 6.355 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001411/0.3529, allocations: 150.7 kB / 1.182 GB, free: 6.195 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003394/0.3533, allocations: 33.89 kB / 1.182 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005674/0.3539, allocations: 366.5 kB / 1.182 GB, free: 5.781 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003039/0.3542, allocations: 0.7514 MB / 1.183 GB, free: 5.004 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.577e-05/0.3543, allocations: 25.53 kB / 1.183 GB, free: 4.977 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.037e-05/0.3543, allocations: 15.44 kB / 1.183 GB, free: 4.961 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.3543, allocations: 0 / 1.183 GB, free: 4.961 MB / 0.9356 GB Notification: Performance of Templates: time 0.004817/0.3591, allocations: 1.776 MB / 1.185 GB, free: 3.207 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches