Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001857/0.001857, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001915/0.001915, allocations: 189.3 kB / 16.25 MB, free: 6.625 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.411/1.411, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.87/2.87, allocations: 469.8 MB / 0.742 GB, free: 7.598 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 70.28 kB / 0.908 GB, free: 34.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.3174, allocations: 159.2 MB / 1.063 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005271/0.3227, allocations: 3.132 MB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002079/0.3248, allocations: 1.313 MB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001284/0.3249, allocations: 4 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0009831/0.3259, allocations: 320.5 kB / 1.068 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003426/0.3263, allocations: 135.4 kB / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003709/0.3266, allocations: 119.8 kB / 1.068 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003895/0.327, allocations: 310.9 kB / 1.069 GB, free: 9.254 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004762/0.3275, allocations: 252.5 kB / 1.069 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001518/0.3277, allocations: 123.5 kB / 1.069 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002844/0.328, allocations: 147.5 kB / 1.069 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.1e-05/0.328, allocations: 19.94 kB / 1.069 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002978/0.3283, allocations: 167.6 kB / 1.069 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.73e-05/0.3284, allocations: 83.78 kB / 1.069 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001154/0.3286, allocations: 103.5 kB / 1.07 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004622/0.329, allocations: 350.9 kB / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.329, allocations: 0 / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3291, allocations: 0 / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.239e-05/0.3291, allocations: 0 / 1.07 GB, free: 8.031 MB / 0.8262 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.0008885/0.33, allocations: 0.5186 MB / 1.07 GB, free: 7.461 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.33, allocations: 15.97 kB / 1.07 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005773/0.3306, allocations: 76.58 kB / 1.07 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003233/0.3309, allocations: 243.9 kB / 1.071 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.331, allocations: 12.75 kB / 1.071 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.782e-05/0.331, allocations: 20.38 kB / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000461/0.3315, allocations: 291.6 kB / 1.071 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.3315, allocations: 3.938 kB / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.382e-05/0.3315, allocations: 12 kB / 1.071 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.405e-05/0.3316, allocations: 16.36 kB / 1.071 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003062/0.3319, allocations: 193 kB / 1.071 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001592/0.3335, allocations: 1.472 MB / 1.073 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002693/0.3338, allocations: 171.7 kB / 1.073 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.549e-05/0.3338, allocations: 40.84 kB / 1.073 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.028e-05/0.3338, allocations: 0 / 1.073 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.337e-05/0.3339, allocations: 34.5 kB / 1.073 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.3339, allocations: 0 / 1.073 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0005102/0.3344, allocations: 227.6 kB / 1.073 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.281e-05/0.3345, allocations: 51.41 kB / 1.073 GB, free: 4.309 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002202/0.3347, allocations: 207.1 kB / 1.073 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.3347, allocations: 29.7 kB / 1.073 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.3348, allocations: 171.5 kB / 1.074 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.52e-05/0.3349, allocations: 27.56 kB / 1.074 GB, free: 3.863 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.104e-05/0.3349, allocations: 33.7 kB / 1.074 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001508/0.3351, allocations: 326.8 kB / 1.074 GB, free: 3.496 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.15e-05/0.3352, allocations: 31.98 kB / 1.074 GB, free: 3.465 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.3353, allocations: 102 kB / 1.074 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001892/0.3355, allocations: 148.4 kB / 1.074 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.3355, allocations: 0 / 1.074 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003148/0.3358, allocations: 194.1 kB / 1.074 GB, free: 2.961 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.3358, allocations: 8 kB / 1.074 GB, free: 2.953 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.3359, allocations: 0 / 1.074 GB, free: 2.953 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000161/0.336, allocations: 32.78 kB / 1.074 GB, free: 2.918 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.3361, allocations: 23.98 kB / 1.074 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001434/0.3376, allocations: 1.422 MB / 1.076 GB, free: 1.328 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001437/0.3377, allocations: 23.84 kB / 1.076 GB, free: 1.305 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.483e-05/0.3378, allocations: 4.312 kB / 1.076 GB, free: 1.301 MB / 0.8262 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.0001758/0.3379, allocations: 149.7 kB / 1.076 GB, free: 1.145 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.079e-05/0.338, allocations: 15.81 kB / 1.076 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.458e-05/0.338, allocations: 17.39 kB / 1.076 GB, free: 1.113 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.338, allocations: 0 / 1.076 GB, free: 1.113 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.338, allocations: 0 / 1.076 GB, free: 1.113 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.3381, allocations: 8.062 kB / 1.076 GB, free: 1.105 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006042/0.3387, allocations: 451.1 kB / 1.076 GB, free: 0.6055 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.3387, allocations: 0 / 1.076 GB, free: 0.6055 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.276e-05/0.3387, allocations: 12 kB / 1.076 GB, free: 0.5938 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.77e-05/0.3388, allocations: 16.84 kB / 1.076 GB, free: 0.5742 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.3388, allocations: 8 kB / 1.076 GB, free: 0.5664 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001216/0.3401, allocations: 1.418 MB / 1.078 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3401, allocations: 0 / 1.078 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002607/0.3403, allocations: 212.1 kB / 1.078 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.3405, allocations: 100.9 kB / 1.078 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.867e-05/0.3405, allocations: 0 / 1.078 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.3406, allocations: 4.062 kB / 1.078 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.073e-05/0.3406, allocations: 15.97 kB / 1.078 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.343e-06/0.3407, allocations: 7.938 kB / 1.078 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001588/0.3408, allocations: 148.3 kB / 1.078 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3408, allocations: 0 / 1.078 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003935/0.3412, allocations: 51.84 kB / 1.078 GB, free: 14.44 MB / 0.8419 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.0001582/0.3414, allocations: 95.25 kB / 1.078 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000451/0.3418, allocations: 218.5 kB / 1.079 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3419, allocations: 0 / 1.079 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001849/0.3421, allocations: 150.6 kB / 1.079 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003801/0.3424, allocations: 36.2 kB / 1.079 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007629/0.3432, allocations: 431.2 kB / 1.079 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/0.3437, allocations: 0.7513 MB / 1.08 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.717e-05/0.3438, allocations: 25.53 kB / 1.08 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.216e-05/0.3438, allocations: 15.44 kB / 1.08 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of SimCode: time 7.52e-07/0.3438, allocations: 0 / 1.08 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of Templates: time 0.00517/0.349, allocations: 1.75 MB / 1.082 GB, free: 10.93 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches