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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.00123/0.00123, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001938/0.001938, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.537/1.537, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.646/2.646, allocations: 390.9 MB / 0.666 GB, free: 2.496 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004429/0.0004432, allocations: 8 kB / 0.8153 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9081/0.9085, allocations: 142.4 MB / 0.9544 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003086/0.9117, allocations: 2.663 MB / 0.957 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001594/0.9133, allocations: 1.232 MB / 0.9582 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.9134, allocations: 6.844 kB / 0.9582 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001523/0.9136, allocations: 41.73 kB / 0.9583 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002901/0.9139, allocations: 107.6 kB / 0.9584 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002622/0.9141, allocations: 101.1 kB / 0.9585 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002987/0.9145, allocations: 348.9 kB / 0.9588 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002642/0.9147, allocations: 226.8 kB / 0.959 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.9148, allocations: 97.12 kB / 0.9591 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002517/0.9151, allocations: 131.9 kB / 0.9592 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.844e-05/0.9151, allocations: 13.56 kB / 0.9593 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001934/0.9153, allocations: 82.62 kB / 0.9593 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.337e-05/0.9154, allocations: 60.89 kB / 0.9594 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.939e-05/0.9155, allocations: 66.02 kB / 0.9595 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002597/0.9157, allocations: 248.7 kB / 0.9597 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.9158, allocations: 0 / 0.9597 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.372e-06/0.9158, allocations: 4 kB / 0.9597 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.486e-06/0.9158, allocations: 0 / 0.9597 GB, free: 3.766 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.0006575/0.9164, allocations: 496.1 kB / 0.9602 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.9165, allocations: 9.188 kB / 0.9602 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005454/0.917, allocations: 85.36 kB / 0.9603 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002403/0.9173, allocations: 234.7 kB / 0.9605 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.9173, allocations: 16.05 kB / 0.9605 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.13e-05/0.9174, allocations: 16.12 kB / 0.9605 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004205/0.9178, allocations: 296 kB / 0.9608 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.9178, allocations: 9.141 kB / 0.9608 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.436e-05/0.9178, allocations: 6.188 kB / 0.9608 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.628e-05/0.9179, allocations: 13.25 kB / 0.9608 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003/0.9182, allocations: 199.7 kB / 0.961 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001294/0.9195, allocations: 1.464 MB / 0.9624 GB, free: 1.242 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002463/0.9197, allocations: 175.7 kB / 0.9626 GB, free: 1.086 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.03e-05/0.9198, allocations: 31.81 kB / 0.9626 GB, free: 1.066 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.402e-05/0.9198, allocations: 0.9062 kB / 0.9626 GB, free: 1.066 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.083e-05/0.9199, allocations: 36.56 kB / 0.9627 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.9199, allocations: 0 / 0.9627 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004524/0.9203, allocations: 233.6 kB / 0.9629 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.965e-05/0.9204, allocations: 52.44 kB / 0.963 GB, free: 0.7656 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001711/0.9205, allocations: 191 kB / 0.9631 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.9206, allocations: 26.8 kB / 0.9632 GB, free: 0.5898 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.357e-05/0.9206, allocations: 171.9 kB / 0.9633 GB, free: 440 kB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.785e-05/0.9207, allocations: 27.45 kB / 0.9634 GB, free: 416 kB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.232e-06/0.9207, allocations: 4 kB / 0.9634 GB, free: 412 kB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.348e-05/0.9207, allocations: 322.3 kB / 0.9637 GB, free: 84 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.062e-05/0.9208, allocations: 42.2 kB / 0.9637 GB, free: 60 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.9209, allocations: 101.4 kB / 0.9638 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.446e-05/0.921, allocations: 52.89 kB / 0.9638 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.921, allocations: 1.25 kB / 0.9639 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003138/0.9214, allocations: 190.1 kB / 0.964 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.9214, allocations: 7.719 kB / 0.964 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.9214, allocations: 2.188 kB / 0.964 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001612/0.9216, allocations: 25.62 kB / 0.9641 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.9217, allocations: 30.77 kB / 0.9641 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001041/0.9227, allocations: 1.309 MB / 0.9654 GB, free: 14.44 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.9229, allocations: 21.5 kB / 0.9654 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.9229, allocations: 5.938 kB / 0.9654 GB, free: 14.42 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00015/0.923, allocations: 161 kB / 0.9656 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.934e-05/0.9231, allocations: 15.19 kB / 0.9656 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.159e-05/0.9231, allocations: 16.72 kB / 0.9656 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.9231, allocations: 1.062 kB / 0.9656 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.9231, allocations: 1.406 kB / 0.9656 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.9231, allocations: 3.984 kB / 0.9656 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005423/0.9237, allocations: 448.6 kB / 0.966 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.9237, allocations: 1.531 kB / 0.966 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.042e-05/0.9238, allocations: 17.89 kB / 0.966 GB, free: 13.83 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.22e-05/0.9238, allocations: 18.44 kB / 0.9661 GB, free: 13.82 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.9239, allocations: 5.375 kB / 0.9661 GB, free: 13.81 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00094/0.9248, allocations: 1.302 MB / 0.9673 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.9248, allocations: 0 / 0.9673 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002181/0.925, allocations: 216.5 kB / 0.9675 GB, free: 12.28 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.341e-05/0.9251, allocations: 98.94 kB / 0.9676 GB, free: 12.17 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.9252, allocations: 1.188 kB / 0.9676 GB, free: 12.17 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.9253, allocations: 8.469 kB / 0.9676 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.639e-05/0.9253, allocations: 10.31 kB / 0.9677 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.623e-06/0.9253, allocations: 5.906 kB / 0.9677 GB, free: 12.15 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001218/0.9254, allocations: 147 kB / 0.9678 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.3e-07/0.9254, allocations: 4 kB / 0.9678 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003416/0.9258, allocations: 48.53 kB / 0.9678 GB, free: 12.03 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001249/0.9259, allocations: 104.9 kB / 0.9679 GB, free: 11.94 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000383/0.9263, allocations: 219 kB / 0.9682 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.9263, allocations: 0.5625 kB / 0.9682 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001571/0.9265, allocations: 148.1 kB / 0.9683 GB, free: 11.64 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003593/0.9269, allocations: 27.2 kB / 0.9683 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006775/0.9275, allocations: 435.1 kB / 0.9687 GB, free: 11.29 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003705/0.9279, allocations: 0.7434 MB / 0.9695 GB, free: 10.56 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001062/0.928, allocations: 21.39 kB / 0.9695 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4e-05/0.9281, allocations: 14.28 kB / 0.9695 GB, free: 10.54 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.9281, allocations: 0.9688 kB / 0.9695 GB, free: 10.54 MB / 0.7325 GB Notification: Performance of Templates: time 0.005077/0.9332, allocations: 1.624 MB / 0.9711 GB, free: 9.738 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