Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001143/0.001143, allocations: 111.8 kB / 16.37 MB, free: 5.539 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.001105/0.001106, allocations: 191.8 kB / 17.3 MB, free: 5.18 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.378/1.378, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.617/2.617, allocations: 437.1 MB / 0.7112 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001952, allocations: 56.66 kB / 0.8707 GB, free: 1.441 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3269, allocations: 151.6 MB / 1.019 GB, free: 9.852 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004908/0.3319, allocations: 3.08 MB / 1.022 GB, free: 6.754 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002115/0.334, allocations: 1.332 MB / 1.023 GB, free: 5.414 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001959/0.3343, allocations: 4 kB / 1.023 GB, free: 5.41 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0011/0.3354, allocations: 335.3 kB / 1.023 GB, free: 5.082 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0003923/0.3358, allocations: 139.3 kB / 1.024 GB, free: 4.945 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003974/0.3362, allocations: 147.1 kB / 1.024 GB, free: 4.805 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0004037/0.3366, allocations: 311 kB / 1.024 GB, free: 4.5 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004273/0.337, allocations: 232.2 kB / 1.024 GB, free: 4.273 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001884/0.3372, allocations: 127.5 kB / 1.024 GB, free: 4.148 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003241/0.3376, allocations: 139.5 kB / 1.024 GB, free: 4.012 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.637e-05/0.3376, allocations: 20 kB / 1.024 GB, free: 3.992 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003064/0.3379, allocations: 167.6 kB / 1.025 GB, free: 3.828 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.338, allocations: 83.78 kB / 1.025 GB, free: 3.746 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.3382, allocations: 107.5 kB / 1.025 GB, free: 3.641 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0004091/0.3386, allocations: 338.9 kB / 1.025 GB, free: 3.309 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3386, allocations: 0 / 1.025 GB, free: 3.309 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.704e-06/0.3386, allocations: 0 / 1.025 GB, free: 3.309 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.3386, allocations: 0 / 1.025 GB, free: 3.309 MB / 0.795 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.0007553/0.3394, allocations: 0.5069 MB / 1.026 GB, free: 2.75 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.3394, allocations: 12.62 kB / 1.026 GB, free: 2.738 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005859/0.34, allocations: 80.58 kB / 1.026 GB, free: 2.66 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003187/0.3403, allocations: 243.9 kB / 1.026 GB, free: 2.383 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.3404, allocations: 16.75 kB / 1.026 GB, free: 2.367 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.204e-05/0.3404, allocations: 20.31 kB / 1.026 GB, free: 2.348 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004251/0.3408, allocations: 303.5 kB / 1.026 GB, free: 2.031 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.3408, allocations: 4 kB / 1.026 GB, free: 2.027 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.3409, allocations: 8 kB / 1.026 GB, free: 2.02 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.563e-05/0.3409, allocations: 24.3 kB / 1.026 GB, free: 1.996 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002941/0.3412, allocations: 197 kB / 1.027 GB, free: 1.805 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001425/0.3427, allocations: 1.452 MB / 1.028 GB, free: 192 kB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002512/0.3429, allocations: 175.7 kB / 1.028 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.692e-05/0.343, allocations: 32.84 kB / 1.028 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.187e-06/0.343, allocations: 160 / 1.028 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.343, allocations: 38.56 kB / 1.028 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 2.124e-06/0.343, allocations: 0 / 1.028 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004696/0.3435, allocations: 231.3 kB / 1.028 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.3436, allocations: 51.41 kB / 1.028 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001905/0.3438, allocations: 200.3 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.3438, allocations: 29.7 kB / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.794e-05/0.3439, allocations: 167.6 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.864e-05/0.3439, allocations: 23.66 kB / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.211e-05/0.344, allocations: 41.61 kB / 1.029 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.75e-05/0.3441, allocations: 322.8 kB / 1.029 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.608e-05/0.3442, allocations: 35.98 kB / 1.029 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.873e-05/0.3443, allocations: 106.8 kB / 1.029 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001661/0.3444, allocations: 152.4 kB / 1.029 GB, free: 14.44 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3444, allocations: 0 / 1.029 GB, free: 14.44 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002986/0.3448, allocations: 190.2 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.3448, allocations: 8 kB / 1.03 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.3448, allocations: 0 / 1.03 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001624/0.345, allocations: 28.84 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.3451, allocations: 27.92 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001043/0.3461, allocations: 1.418 MB / 1.031 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000125/0.3463, allocations: 19.84 kB / 1.031 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.3463, allocations: 8 kB / 1.031 GB, free: 12.6 MB / 0.8106 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.0001267/0.3464, allocations: 154.5 kB / 1.031 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.949e-05/0.3465, allocations: 15.81 kB / 1.031 GB, free: 12.42 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.08e-05/0.3465, allocations: 21.34 kB / 1.031 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.3465, allocations: 0 / 1.031 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.3465, allocations: 0 / 1.031 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.3465, allocations: 4 kB / 1.031 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004917/0.347, allocations: 447.2 kB / 1.032 GB, free: 11.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.347, allocations: 4 kB / 1.032 GB, free: 11.9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.085e-05/0.3471, allocations: 12.11 kB / 1.032 GB, free: 11.89 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.888e-05/0.3472, allocations: 24.83 kB / 1.032 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.3472, allocations: 7.984 kB / 1.032 GB, free: 11.85 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000937/0.3481, allocations: 1.41 MB / 1.033 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3482, allocations: 0 / 1.033 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002175/0.3484, allocations: 224.6 kB / 1.033 GB, free: 10.05 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 8.305e-05/0.3485, allocations: 97 kB / 1.033 GB, free: 9.941 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.829e-05/0.3485, allocations: 0 / 1.033 GB, free: 9.941 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.3486, allocations: 4 kB / 1.033 GB, free: 9.938 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.862e-05/0.3486, allocations: 4.078 kB / 1.033 GB, free: 9.934 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.738e-06/0.3486, allocations: 11.94 kB / 1.033 GB, free: 9.922 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001163/0.3488, allocations: 135.2 kB / 1.034 GB, free: 9.789 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3488, allocations: 4 kB / 1.034 GB, free: 9.785 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003245/0.3491, allocations: 55.84 kB / 1.034 GB, free: 9.73 MB / 0.8106 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.0001025/0.3492, allocations: 99.25 kB / 1.034 GB, free: 9.625 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003422/0.3496, allocations: 214.4 kB / 1.034 GB, free: 9.402 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3496, allocations: 0 / 1.034 GB, free: 9.402 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001544/0.3497, allocations: 147.2 kB / 1.034 GB, free: 9.246 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003571/0.3501, allocations: 33.42 kB / 1.034 GB, free: 9.215 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006708/0.3508, allocations: 354.5 kB / 1.034 GB, free: 8.84 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003229/0.3511, allocations: 0.7514 MB / 1.035 GB, free: 8.062 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001383/0.3513, allocations: 25.53 kB / 1.035 GB, free: 8.039 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.322e-05/0.3513, allocations: 15.44 kB / 1.035 GB, free: 8.023 MB / 0.8106 GB Notification: Performance of SimCode: time 7.12e-07/0.3513, allocations: 0 / 1.035 GB, free: 8.023 MB / 0.8106 GB Notification: Performance of Templates: time 0.004583/0.3559, allocations: 1.75 MB / 1.037 GB, free: 6.297 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches