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.001227/0.001227, allocations: 106 kB / 15.98 MB, free: 6.359 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.001178/0.001179, allocations: 195.4 kB / 16.91 MB, free: 6.191 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.321/1.321, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.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.229/2.229, allocations: 390.3 MB / 0.665 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002313/0.002313, allocations: 65.86 kB / 0.8127 GB, free: 33.15 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2661, allocations: 140.4 MB / 0.9498 GB, free: 9.266 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004805/0.271, allocations: 3.134 MB / 0.9528 GB, free: 6.117 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00218/0.2732, allocations: 1.317 MB / 0.9541 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000199/0.2734, allocations: 4 kB / 0.9541 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.00109/0.2745, allocations: 314.9 kB / 0.9544 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.000409/0.2749, allocations: 131.4 kB / 0.9545 GB, free: 4.352 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004326/0.2754, allocations: 127.7 kB / 0.9547 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004217/0.2758, allocations: 303 kB / 0.9549 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005235/0.2763, allocations: 268.5 kB / 0.9552 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001928/0.2765, allocations: 119.6 kB / 0.9553 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003208/0.2769, allocations: 143.5 kB / 0.9555 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.791e-05/0.2769, allocations: 20 kB / 0.9555 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003506/0.2773, allocations: 167.6 kB / 0.9556 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.2774, allocations: 75.81 kB / 0.9557 GB, free: 3.148 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001245/0.2775, allocations: 111.5 kB / 0.9558 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003745/0.2779, allocations: 263.4 kB / 0.9561 GB, free: 2.781 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.2779, allocations: 7.938 kB / 0.9561 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2779, allocations: 0 / 0.9561 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.327e-05/0.278, allocations: 0 / 0.9561 GB, free: 2.773 MB / 0.7325 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.00087/0.2788, allocations: 0.5185 MB / 0.9566 GB, free: 2.203 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.2789, allocations: 8.031 kB / 0.9566 GB, free: 2.195 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006032/0.2795, allocations: 80.56 kB / 0.9567 GB, free: 2.117 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002945/0.2798, allocations: 243.9 kB / 0.9569 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.2798, allocations: 12.75 kB / 0.9569 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.608e-05/0.2799, allocations: 20.38 kB / 0.9569 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004572/0.2803, allocations: 307.3 kB / 0.9572 GB, free: 1.48 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.2804, allocations: 0 / 0.9572 GB, free: 1.48 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.617e-05/0.2804, allocations: 4 kB / 0.9572 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.583e-05/0.2804, allocations: 20.38 kB / 0.9572 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003189/0.2808, allocations: 200.9 kB / 0.9574 GB, free: 1.262 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00156/0.2823, allocations: 1.456 MB / 0.9589 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002539/0.2826, allocations: 179.7 kB / 0.959 GB, free: 15.44 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.209e-05/0.2827, allocations: 36.84 kB / 0.9591 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 9.277e-06/0.2827, allocations: 0 / 0.9591 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.2827, allocations: 38.55 kB / 0.9591 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.2827, allocations: 0 / 0.9591 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0004829/0.2832, allocations: 227.3 kB / 0.9593 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.312e-05/0.2833, allocations: 51.41 kB / 0.9594 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001978/0.2835, allocations: 202.4 kB / 0.9596 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.2835, allocations: 25.7 kB / 0.9596 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 9.825e-05/0.2836, allocations: 163.6 kB / 0.9597 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.351e-05/0.2836, allocations: 27.78 kB / 0.9598 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.052e-05/0.2837, allocations: 37.62 kB / 0.9598 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.2838, allocations: 326.8 kB / 0.9601 GB, free: 14.24 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.707e-05/0.2839, allocations: 47.91 kB / 0.9602 GB, free: 14.2 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.678e-05/0.284, allocations: 100.5 kB / 0.9603 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001684/0.2842, allocations: 140.5 kB / 0.9604 GB, free: 13.9 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.2842, allocations: 0 / 0.9604 GB, free: 13.9 MB / 0.7481 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000321/0.2845, allocations: 194.1 kB / 0.9606 GB, free: 13.7 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.2845, allocations: 4 kB / 0.9606 GB, free: 13.7 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.2845, allocations: 4 kB / 0.9606 GB, free: 13.69 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001649/0.2847, allocations: 25.12 kB / 0.9606 GB, free: 13.66 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.2848, allocations: 35.92 kB / 0.9606 GB, free: 13.63 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001136/0.286, allocations: 1.414 MB / 0.962 GB, free: 12.08 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001467/0.2862, allocations: 19.91 kB / 0.962 GB, free: 12.06 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.563e-05/0.2862, allocations: 11.98 kB / 0.962 GB, free: 12.05 MB / 0.7481 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.0001501/0.2863, allocations: 147.7 kB / 0.9622 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.679e-05/0.2864, allocations: 15.81 kB / 0.9622 GB, free: 11.88 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.863e-05/0.2864, allocations: 17.47 kB / 0.9622 GB, free: 11.87 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.2864, allocations: 7.984 kB / 0.9622 GB, free: 11.86 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.2864, allocations: 0 / 0.9622 GB, free: 11.86 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.2865, allocations: 96 / 0.9622 GB, free: 11.86 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005279/0.287, allocations: 447.5 kB / 0.9627 GB, free: 11.36 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.287, allocations: 3.984 kB / 0.9627 GB, free: 11.36 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.297e-05/0.2871, allocations: 11.92 kB / 0.9627 GB, free: 11.35 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.184e-05/0.2872, allocations: 28.84 kB / 0.9627 GB, free: 11.32 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.2872, allocations: 0 / 0.9627 GB, free: 11.32 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009353/0.2881, allocations: 1.414 MB / 0.9641 GB, free: 9.754 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2881, allocations: 0 / 0.9641 GB, free: 9.754 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000215/0.2883, allocations: 216.1 kB / 0.9643 GB, free: 9.523 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.808e-05/0.2884, allocations: 93.11 kB / 0.9644 GB, free: 9.414 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.199e-05/0.2885, allocations: 3.984 kB / 0.9644 GB, free: 9.41 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001133/0.2886, allocations: 4 kB / 0.9644 GB, free: 9.406 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.578e-05/0.2886, allocations: 11.94 kB / 0.9644 GB, free: 9.395 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.2886, allocations: 0 / 0.9644 GB, free: 9.395 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001273/0.2887, allocations: 152.7 kB / 0.9645 GB, free: 9.246 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2888, allocations: 0 / 0.9645 GB, free: 9.246 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.000358/0.2891, allocations: 51.84 kB / 0.9646 GB, free: 9.195 MB / 0.7481 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.0001042/0.2892, allocations: 104.5 kB / 0.9647 GB, free: 9.086 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.000371/0.2896, allocations: 210.5 kB / 0.9649 GB, free: 8.867 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2896, allocations: 3.938 kB / 0.9649 GB, free: 8.863 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001589/0.2898, allocations: 146.6 kB / 0.965 GB, free: 8.707 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.2902, allocations: 40.53 kB / 0.9651 GB, free: 8.668 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006965/0.2909, allocations: 464.3 kB / 0.9655 GB, free: 8.184 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003031/0.2912, allocations: 0.7552 MB / 0.9663 GB, free: 7.402 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.218e-05/0.2912, allocations: 15.44 kB / 0.9663 GB, free: 7.387 MB / 0.7481 GB Notification: Performance of SimCode: time 8.02e-07/0.2912, allocations: 0 / 0.9663 GB, free: 7.387 MB / 0.7481 GB Notification: Performance of Templates: time 0.005573/0.2968, allocations: 2.975 MB / 0.9692 GB, free: 4.426 MB / 0.7481 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/jenkins1/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