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.001216/0.001216, allocations: 108.3 kB / 16.37 MB, free: 5.516 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.001171/0.001172, allocations: 193.3 kB / 17.31 MB, free: 5.16 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.419/1.419, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.228/2.228, allocations: 390.3 MB / 0.6655 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 66.78 kB / 0.814 GB, free: 32.67 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3052, allocations: 140.4 MB / 0.9511 GB, free: 8.078 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005072/0.3103, allocations: 3.074 MB / 0.9541 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002312/0.3127, allocations: 1.332 MB / 0.9554 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.3128, allocations: 4 kB / 0.9554 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0009618/0.3138, allocations: 334.7 kB / 0.9558 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003095/0.3142, allocations: 139.3 kB / 0.9559 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003176/0.3145, allocations: 135.6 kB / 0.956 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003349/0.3148, allocations: 310.9 kB / 0.9563 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004555/0.3153, allocations: 236.3 kB / 0.9565 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001354/0.3155, allocations: 119.6 kB / 0.9567 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002614/0.3157, allocations: 135.5 kB / 0.9568 GB, free: 2.258 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.914e-05/0.3158, allocations: 20 kB / 0.9568 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002923/0.3161, allocations: 167.6 kB / 0.957 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.429e-05/0.3162, allocations: 79.8 kB / 0.957 GB, free: 1.996 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001171/0.3163, allocations: 115.4 kB / 0.9571 GB, free: 1.883 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003819/0.3167, allocations: 338.9 kB / 0.9575 GB, free: 1.551 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.3167, allocations: 4 kB / 0.9575 GB, free: 1.547 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3167, allocations: 0 / 0.9575 GB, free: 1.547 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.3167, allocations: 0 / 0.9575 GB, free: 1.547 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.0008194/0.3175, allocations: 0.5146 MB / 0.958 GB, free: 0.9805 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.3176, allocations: 8.031 kB / 0.958 GB, free: 0.9727 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005551/0.3181, allocations: 84.58 kB / 0.9581 GB, free: 0.8906 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004209/0.3186, allocations: 245.8 kB / 0.9583 GB, free: 0.6133 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.729e-05/0.3187, allocations: 12.75 kB / 0.9583 GB, free: 0.6016 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.424e-05/0.3187, allocations: 20.36 kB / 0.9583 GB, free: 0.582 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006161/0.3193, allocations: 311.2 kB / 0.9586 GB, free: 264 kB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.3194, allocations: 0 / 0.9586 GB, free: 264 kB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.445e-05/0.3194, allocations: 8 kB / 0.9586 GB, free: 256 kB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.822e-05/0.3195, allocations: 16.38 kB / 0.9587 GB, free: 240 kB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004781/0.3199, allocations: 196.9 kB / 0.9588 GB, free: 44 kB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002335/0.3223, allocations: 1.456 MB / 0.9603 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003845/0.3227, allocations: 183.6 kB / 0.9604 GB, free: 14.22 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.534e-05/0.3228, allocations: 36.83 kB / 0.9605 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 1.053e-05/0.3228, allocations: 0 / 0.9605 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/0.3229, allocations: 34.56 kB / 0.9605 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.3229, allocations: 3.938 kB / 0.9605 GB, free: 14.13 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0006532/0.3235, allocations: 227.4 kB / 0.9607 GB, free: 13.88 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.461e-05/0.3236, allocations: 55.34 kB / 0.9608 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002519/0.3238, allocations: 198.4 kB / 0.961 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.3239, allocations: 25.7 kB / 0.961 GB, free: 13.58 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001378/0.324, allocations: 167.7 kB / 0.9612 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.619e-05/0.3241, allocations: 27.64 kB / 0.9612 GB, free: 13.39 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.997e-05/0.3241, allocations: 37.62 kB / 0.9612 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002064/0.3244, allocations: 330.8 kB / 0.9615 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.677e-05/0.3245, allocations: 40.03 kB / 0.9616 GB, free: 12.97 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001606/0.3246, allocations: 96.58 kB / 0.9617 GB, free: 12.85 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002627/0.3249, allocations: 152.3 kB / 0.9618 GB, free: 12.67 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.3249, allocations: 0 / 0.9618 GB, free: 12.67 MB / 0.7481 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004532/0.3254, allocations: 190.1 kB / 0.962 GB, free: 12.47 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.3254, allocations: 8 kB / 0.962 GB, free: 12.46 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.3254, allocations: 0 / 0.962 GB, free: 12.46 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001989/0.3256, allocations: 29.12 kB / 0.962 GB, free: 12.43 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001592/0.3258, allocations: 27.98 kB / 0.962 GB, free: 12.41 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001702/0.3275, allocations: 1.414 MB / 0.9634 GB, free: 10.86 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001387/0.3277, allocations: 19.88 kB / 0.9634 GB, free: 10.84 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.364e-05/0.3277, allocations: 11.94 kB / 0.9635 GB, free: 10.82 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.0001405/0.3279, allocations: 145.8 kB / 0.9636 GB, free: 10.67 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.795e-05/0.3279, allocations: 15.81 kB / 0.9636 GB, free: 10.66 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.73e-05/0.3279, allocations: 21.5 kB / 0.9636 GB, free: 10.64 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.3279, allocations: 0 / 0.9636 GB, free: 10.64 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.328, allocations: 4 kB / 0.9636 GB, free: 10.64 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.328, allocations: 3.984 kB / 0.9636 GB, free: 10.63 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005287/0.3285, allocations: 443.2 kB / 0.9641 GB, free: 10.14 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.3285, allocations: 0 / 0.9641 GB, free: 10.14 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.9e-05/0.3286, allocations: 11.98 kB / 0.9641 GB, free: 10.13 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.205e-05/0.3286, allocations: 24.89 kB / 0.9641 GB, free: 10.1 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.3287, allocations: 7.984 kB / 0.9641 GB, free: 10.09 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00138/0.3301, allocations: 1.415 MB / 0.9655 GB, free: 8.531 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3301, allocations: 0 / 0.9655 GB, free: 8.531 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002295/0.3303, allocations: 216 kB / 0.9657 GB, free: 8.301 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 9.286e-05/0.3304, allocations: 97 kB / 0.9658 GB, free: 8.188 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.796e-05/0.3304, allocations: 0 / 0.9658 GB, free: 8.188 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001173/0.3306, allocations: 12.05 kB / 0.9658 GB, free: 8.176 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.335e-05/0.3306, allocations: 4 kB / 0.9658 GB, free: 8.172 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.3e-06/0.3306, allocations: 0 / 0.9658 GB, free: 8.172 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001717/0.3308, allocations: 152.7 kB / 0.9659 GB, free: 8.023 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3308, allocations: 0 / 0.9659 GB, free: 8.023 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003427/0.3311, allocations: 51.84 kB / 0.966 GB, free: 7.973 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.0001322/0.3313, allocations: 101.2 kB / 0.9661 GB, free: 7.867 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003813/0.3316, allocations: 214.6 kB / 0.9663 GB, free: 7.645 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3317, allocations: 192 / 0.9663 GB, free: 7.645 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001449/0.3318, allocations: 154.5 kB / 0.9664 GB, free: 7.48 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003604/0.3322, allocations: 34.66 kB / 0.9665 GB, free: 7.449 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005995/0.3328, allocations: 347.3 kB / 0.9668 GB, free: 7.086 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003748/0.3332, allocations: 0.7513 MB / 0.9675 GB, free: 6.309 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 8.004e-05/0.3333, allocations: 25.53 kB / 0.9676 GB, free: 6.285 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.218e-05/0.3333, allocations: 15.44 kB / 0.9676 GB, free: 6.27 MB / 0.7481 GB Notification: Performance of SimCode: time 3.1e-07/0.3333, allocations: 0 / 0.9676 GB, free: 6.27 MB / 0.7481 GB Notification: Performance of Templates: time 0.004925/0.3382, allocations: 1.743 MB / 0.9693 GB, free: 4.547 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 -s cvode -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