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.001663/0.001663, allocations: 108 kB / 15.6 MB, free: 132 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.001972/0.001972, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.457/1.457, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.46/2.46, allocations: 390.2 MB / 0.6646 GB, free: 272 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 67.89 kB / 0.8125 GB, free: 14.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7119/0.7132, allocations: 140.4 MB / 0.9496 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.00432/0.7176, allocations: 3.072 MB / 0.9526 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002087/0.7197, allocations: 1.322 MB / 0.9539 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001689/0.7199, allocations: 9 kB / 0.9539 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001008/0.721, allocations: 329.6 kB / 0.9542 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003613/0.7213, allocations: 148.2 kB / 0.9543 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003548/0.7217, allocations: 140 kB / 0.9545 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003176/0.722, allocations: 299.4 kB / 0.9548 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004197/0.7225, allocations: 242 kB / 0.955 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001387/0.7226, allocations: 130.2 kB / 0.9551 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000264/0.7229, allocations: 140.8 kB / 0.9552 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.955e-05/0.7229, allocations: 18.66 kB / 0.9553 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002886/0.7232, allocations: 167.7 kB / 0.9554 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.764e-05/0.7233, allocations: 82.72 kB / 0.9555 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.7234, allocations: 109.6 kB / 0.9556 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003684/0.7238, allocations: 332.8 kB / 0.9559 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.7238, allocations: 3.938 kB / 0.9559 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.974e-06/0.7238, allocations: 0 / 0.9559 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.426e-06/0.7238, allocations: 0 / 0.9559 GB, free: 4.41 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.0007738/0.7246, allocations: 0.5111 MB / 0.9564 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.7247, allocations: 10.22 kB / 0.9564 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006184/0.7253, allocations: 75.48 kB / 0.9565 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002678/0.7256, allocations: 244.5 kB / 0.9567 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.135e-05/0.7256, allocations: 11.69 kB / 0.9567 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.742e-05/0.7256, allocations: 24.69 kB / 0.9568 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004522/0.7261, allocations: 309.6 kB / 0.9571 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.7261, allocations: 4.969 kB / 0.9571 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.642e-05/0.7262, allocations: 6.031 kB / 0.9571 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.27e-05/0.7262, allocations: 17.59 kB / 0.9571 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002867/0.7265, allocations: 201.1 kB / 0.9573 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001237/0.7277, allocations: 1.457 MB / 0.9587 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002694/0.728, allocations: 181 kB / 0.9589 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.582e-05/0.7281, allocations: 35.97 kB / 0.9589 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.267e-06/0.7281, allocations: 0 / 0.9589 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.116e-05/0.7281, allocations: 35.92 kB / 0.959 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 8.82e-07/0.7281, allocations: 0 / 0.959 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004699/0.7286, allocations: 222.8 kB / 0.9592 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.68e-05/0.7287, allocations: 55.41 kB / 0.9592 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002016/0.7289, allocations: 200.3 kB / 0.9594 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.211e-05/0.7289, allocations: 26.86 kB / 0.9594 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.342e-05/0.729, allocations: 159 kB / 0.9596 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.743e-05/0.729, allocations: 27.61 kB / 0.9596 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.988e-05/0.7291, allocations: 37.66 kB / 0.9596 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.618e-05/0.7291, allocations: 326.4 kB / 0.96 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.539e-05/0.7292, allocations: 42.66 kB / 0.96 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000108/0.7293, allocations: 102.1 kB / 0.9601 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000186/0.7295, allocations: 141.3 kB / 0.9602 GB, free: 428 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.7295, allocations: 1.188 kB / 0.9602 GB, free: 428 kB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003538/0.7299, allocations: 190.3 kB / 0.9604 GB, free: 308 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.114e-05/0.7299, allocations: 7.469 kB / 0.9604 GB, free: 308 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.7299, allocations: 3.031 kB / 0.9604 GB, free: 308 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002002/0.7302, allocations: 25.88 kB / 0.9604 GB, free: 292 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.7303, allocations: 38.3 kB / 0.9605 GB, free: 276 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001244/0.7315, allocations: 1.419 MB / 0.9619 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000146/0.7317, allocations: 29.2 kB / 0.9619 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.605e-05/0.7317, allocations: 6.5 kB / 0.9619 GB, free: 14.79 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.000172/0.7319, allocations: 146.4 kB / 0.962 GB, free: 14.65 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.305e-05/0.732, allocations: 18.31 kB / 0.9621 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.128e-05/0.732, allocations: 17.56 kB / 0.9621 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.732, allocations: 5.234 kB / 0.9621 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.732, allocations: 1.125 kB / 0.9621 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.732, allocations: 0 / 0.9621 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006253/0.7327, allocations: 445.4 kB / 0.9625 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.7327, allocations: 0 / 0.9625 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.546e-05/0.7327, allocations: 14.48 kB / 0.9625 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001003/0.7328, allocations: 27.72 kB / 0.9625 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.7329, allocations: 0 / 0.9625 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001135/0.734, allocations: 1.415 MB / 0.9639 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.734, allocations: 1.125 kB / 0.9639 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002598/0.7343, allocations: 208.4 kB / 0.9641 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.348e-05/0.7344, allocations: 103.2 kB / 0.9642 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.278e-05/0.7344, allocations: 5.078 kB / 0.9642 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.7345, allocations: 3.281 kB / 0.9642 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.646e-05/0.7346, allocations: 10.12 kB / 0.9642 GB, free: 12.42 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.7346, allocations: 2.156 kB / 0.9642 GB, free: 12.42 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001502/0.7347, allocations: 151.1 kB / 0.9644 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.1e-07/0.7347, allocations: 0 / 0.9644 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004074/0.7352, allocations: 48.78 kB / 0.9644 GB, free: 12.3 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.0001683/0.7353, allocations: 107.8 kB / 0.9645 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004374/0.7358, allocations: 208.5 kB / 0.9647 GB, free: 12.05 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.7358, allocations: 1.312 kB / 0.9647 GB, free: 12.05 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001674/0.736, allocations: 143.8 kB / 0.9649 GB, free: 11.92 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004122/0.7364, allocations: 39.84 kB / 0.9649 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008464/0.7372, allocations: 361.8 kB / 0.9653 GB, free: 11.64 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004648/0.7377, allocations: 0.7467 MB / 0.966 GB, free: 10.91 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001142/0.7378, allocations: 26.47 kB / 0.966 GB, free: 10.89 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.404e-05/0.7379, allocations: 14.06 kB / 0.966 GB, free: 10.88 MB / 0.7325 GB Notification: Performance of SimCode: time 2.1e-07/0.7379, allocations: 0 / 0.966 GB, free: 10.88 MB / 0.7325 GB Notification: Performance of Templates: time 0.005308/0.7432, allocations: 1.747 MB / 0.9677 GB, free: 10.03 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