Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.0009636/0.0009636, allocations: 97.33 kB / 15.36 MB, free: 0.7305 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.001362/0.001363, allocations: 172.8 kB / 16.27 MB, free: 6.664 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.54/1.54, allocations: 223.2 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.441/2.441, allocations: 390.9 MB / 0.6663 GB, free: 2.391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003886/0.0003886, allocations: 12 kB / 0.816 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8421/0.8425, allocations: 142.4 MB / 0.955 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004071/0.8466, allocations: 2.76 MB / 0.9577 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002279/0.8489, allocations: 1.303 MB / 0.959 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002346/0.8491, allocations: 7.938 kB / 0.959 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002454/0.8494, allocations: 37.53 kB / 0.959 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005556/0.85, allocations: 133.4 kB / 0.9592 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000474/0.8505, allocations: 124.1 kB / 0.9593 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005997/0.8511, allocations: 432.6 kB / 0.9597 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004222/0.8515, allocations: 240.8 kB / 0.9599 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002425/0.8518, allocations: 99.69 kB / 0.96 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004114/0.8522, allocations: 139.9 kB / 0.9602 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.169e-05/0.8522, allocations: 11 kB / 0.9602 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004209/0.8527, allocations: 202.1 kB / 0.9604 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001135/0.8528, allocations: 74.94 kB / 0.9604 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001792/0.853, allocations: 122.2 kB / 0.9606 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005974/0.8536, allocations: 341.3 kB / 0.9609 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.8536, allocations: 0 / 0.9609 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.723e-06/0.8536, allocations: 0 / 0.9609 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.122e-05/0.8536, allocations: 0 / 0.9609 GB, free: 3.336 MB / 0.7169 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.0009921/0.8546, allocations: 479.1 kB / 0.9613 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.711e-05/0.8547, allocations: 12.98 kB / 0.9613 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008271/0.8555, allocations: 78 kB / 0.9614 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003892/0.8559, allocations: 254.1 kB / 0.9617 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.856, allocations: 11.84 kB / 0.9617 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.377e-05/0.856, allocations: 20.59 kB / 0.9617 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006054/0.8566, allocations: 305.6 kB / 0.962 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.8567, allocations: 4.938 kB / 0.962 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.673e-05/0.8567, allocations: 6.406 kB / 0.962 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.713e-05/0.8568, allocations: 20.89 kB / 0.962 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004069/0.8572, allocations: 196.9 kB / 0.9622 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001634/0.8588, allocations: 1.468 MB / 0.9636 GB, free: 0.8047 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002858/0.8591, allocations: 176.4 kB / 0.9638 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.11e-05/0.8592, allocations: 32.19 kB / 0.9638 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.269e-05/0.8592, allocations: 1.344 kB / 0.9638 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.063e-05/0.8592, allocations: 39.66 kB / 0.9639 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.653e-06/0.8592, allocations: 0 / 0.9639 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004895/0.8597, allocations: 222.6 kB / 0.9641 GB, free: 408 kB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.587e-05/0.8598, allocations: 52.75 kB / 0.9641 GB, free: 344 kB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002019/0.86, allocations: 196 kB / 0.9643 GB, free: 192 kB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.86, allocations: 25.7 kB / 0.9644 GB, free: 160 kB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.333e-05/0.8601, allocations: 160.2 kB / 0.9645 GB, free: 8 kB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.203e-05/0.8601, allocations: 31.88 kB / 0.9645 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.848e-05/0.8602, allocations: 21.28 kB / 0.9646 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001301/0.8603, allocations: 338.3 kB / 0.9649 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.376e-05/0.8604, allocations: 35.86 kB / 0.9649 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001115/0.8605, allocations: 101.6 kB / 0.965 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001888/0.8607, allocations: 146 kB / 0.9651 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.8607, allocations: 1.188 kB / 0.9651 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003416/0.8611, allocations: 183.1 kB / 0.9653 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.8611, allocations: 6.281 kB / 0.9653 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.8611, allocations: 6.391 kB / 0.9653 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001883/0.8613, allocations: 34 kB / 0.9654 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.8614, allocations: 24.06 kB / 0.9654 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/0.8629, allocations: 1.327 MB / 0.9667 GB, free: 13.87 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001543/0.863, allocations: 17.47 kB / 0.9667 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.795e-05/0.8631, allocations: 9.375 kB / 0.9667 GB, free: 13.85 MB / 0.7325 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.0001615/0.8632, allocations: 142.5 kB / 0.9668 GB, free: 13.72 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.219e-05/0.8633, allocations: 19.03 kB / 0.9669 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.023e-05/0.8634, allocations: 21.02 kB / 0.9669 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.8634, allocations: 1.031 kB / 0.9669 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.8634, allocations: 5.25 kB / 0.9669 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.8634, allocations: 0 / 0.9669 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006359/0.864, allocations: 445.9 kB / 0.9673 GB, free: 13.28 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.864, allocations: 0 / 0.9673 GB, free: 13.28 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.039e-05/0.8641, allocations: 6.875 kB / 0.9673 GB, free: 13.28 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.235e-05/0.8642, allocations: 27.34 kB / 0.9674 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.8642, allocations: 0 / 0.9674 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001014/0.8652, allocations: 1.31 MB / 0.9686 GB, free: 11.9 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.8652, allocations: 3.938 kB / 0.9686 GB, free: 11.9 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003172/0.8656, allocations: 221.1 kB / 0.9688 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.739e-05/0.8657, allocations: 98.8 kB / 0.9689 GB, free: 11.6 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.455e-05/0.8657, allocations: 9.016 kB / 0.9689 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.8658, allocations: 7.344 kB / 0.969 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.03e-05/0.8659, allocations: 3.562 kB / 0.969 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.191e-06/0.8659, allocations: 1.219 kB / 0.969 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000147/0.866, allocations: 151.9 kB / 0.9691 GB, free: 11.47 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.61e-07/0.866, allocations: 0 / 0.9691 GB, free: 11.47 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003752/0.8664, allocations: 52.53 kB / 0.9692 GB, free: 11.46 MB / 0.7325 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.0001306/0.8665, allocations: 99.84 kB / 0.9692 GB, free: 11.37 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004733/0.867, allocations: 211.4 kB / 0.9695 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/0.867, allocations: 0 / 0.9695 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001925/0.8672, allocations: 145.8 kB / 0.9696 GB, free: 11.08 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004125/0.8677, allocations: 37.53 kB / 0.9696 GB, free: 11.06 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007976/0.8685, allocations: 448.7 kB / 0.9701 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003861/0.8689, allocations: 0.7515 MB / 0.9708 GB, free: 9.977 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001293/0.869, allocations: 33.86 kB / 0.9708 GB, free: 9.953 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.143e-05/0.8691, allocations: 14.62 kB / 0.9708 GB, free: 9.945 MB / 0.7325 GB Notification: Performance of SimCode: time 6.12e-07/0.8691, allocations: 0 / 0.9708 GB, free: 9.945 MB / 0.7325 GB Notification: Performance of Templates: time 0.006087/0.8752, allocations: 1.67 MB / 0.9725 GB, free: 9.125 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches