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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001179/0.001179, allocations: 112.6 kB / 16.41 MB, free: 6.492 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.001279/0.001279, allocations: 189.6 kB / 17.34 MB, free: 5.766 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.354/1.354, 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.1-maint.10.0.x/package.mo): time 2.562/2.562, allocations: 437 MB / 0.7112 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 67.91 kB / 1.019 GB, free: 9.484 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8126/0.8141, allocations: 151.6 MB / 1.167 GB, free: 3.895 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005159/0.8193, allocations: 3.087 MB / 1.17 GB, free: 0.793 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002434/0.8217, allocations: 1.332 MB / 1.172 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000231/0.822, allocations: 4 kB / 1.172 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001259/0.8233, allocations: 334.7 kB / 1.172 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0005106/0.8238, allocations: 143.3 kB / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004726/0.8243, allocations: 137 kB / 1.172 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0004785/0.8248, allocations: 306.9 kB / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004894/0.8253, allocations: 240.3 kB / 1.173 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002189/0.8255, allocations: 119.6 kB / 1.173 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003907/0.8259, allocations: 135.5 kB / 1.173 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 4.853e-05/0.826, allocations: 20 kB / 1.173 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003433/0.8263, allocations: 171.6 kB / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.8265, allocations: 79.8 kB / 1.173 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.8266, allocations: 115.4 kB / 1.173 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.000555/0.8272, allocations: 332.7 kB / 1.174 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.8272, allocations: 4 kB / 1.174 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.373e-06/0.8272, allocations: 0 / 1.174 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.08e-05/0.8272, allocations: 0 / 1.174 GB, free: 13.36 MB / 0.9044 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.0009621/0.8282, allocations: 0.5185 MB / 1.174 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.8282, allocations: 8.922 kB / 1.174 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006572/0.8289, allocations: 76.58 kB / 1.174 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003804/0.8293, allocations: 251.8 kB / 1.174 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/0.8293, allocations: 16.73 kB / 1.174 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.962e-05/0.8294, allocations: 20.38 kB / 1.174 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004676/0.8298, allocations: 295.5 kB / 1.175 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.8299, allocations: 4 kB / 1.175 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.762e-05/0.8299, allocations: 7.984 kB / 1.175 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.94e-05/0.8299, allocations: 20.36 kB / 1.175 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003198/0.8303, allocations: 193 kB / 1.175 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001658/0.8319, allocations: 1.46 MB / 1.176 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002782/0.8322, allocations: 171.7 kB / 1.177 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.402e-05/0.8323, allocations: 40.78 kB / 1.177 GB, free: 9.996 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/0.8323, allocations: 0 / 1.177 GB, free: 9.996 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.8324, allocations: 38.56 kB / 1.177 GB, free: 9.949 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.8324, allocations: 0 / 1.177 GB, free: 9.949 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0005331/0.8329, allocations: 219.4 kB / 1.177 GB, free: 9.707 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.795e-05/0.833, allocations: 59.33 kB / 1.177 GB, free: 9.637 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002193/0.8332, allocations: 203.9 kB / 1.177 GB, free: 9.43 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.504e-05/0.8332, allocations: 29.64 kB / 1.177 GB, free: 9.395 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.8333, allocations: 171.7 kB / 1.177 GB, free: 9.223 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.244e-05/0.8334, allocations: 27.66 kB / 1.177 GB, free: 9.195 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.529e-05/0.8334, allocations: 33.7 kB / 1.177 GB, free: 9.156 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.8335, allocations: 330.8 kB / 1.178 GB, free: 8.824 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.363e-05/0.8336, allocations: 35.92 kB / 1.178 GB, free: 8.789 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001181/0.8337, allocations: 102.9 kB / 1.178 GB, free: 8.66 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000173/0.8339, allocations: 148.4 kB / 1.178 GB, free: 8.484 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.8339, allocations: 0 / 1.178 GB, free: 8.484 MB / 0.9044 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003505/0.8343, allocations: 190.1 kB / 1.178 GB, free: 8.289 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.8343, allocations: 4.281 kB / 1.178 GB, free: 8.285 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.8343, allocations: 8 kB / 1.178 GB, free: 8.277 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001921/0.8345, allocations: 24.84 kB / 1.178 GB, free: 8.25 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.8347, allocations: 27.98 kB / 1.178 GB, free: 8.223 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/0.8358, allocations: 1.422 MB / 1.18 GB, free: 6.66 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00015/0.836, allocations: 19.84 kB / 1.18 GB, free: 6.641 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.705e-05/0.836, allocations: 12 kB / 1.18 GB, free: 6.629 MB / 0.9044 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.0001647/0.8362, allocations: 156.9 kB / 1.18 GB, free: 6.469 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.117e-05/0.8363, allocations: 19.8 kB / 1.18 GB, free: 6.449 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.742e-05/0.8363, allocations: 13.41 kB / 1.18 GB, free: 6.43 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.8363, allocations: 0 / 1.18 GB, free: 6.43 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.8363, allocations: 0 / 1.18 GB, free: 6.43 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.8363, allocations: 0 / 1.18 GB, free: 6.43 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006133/0.837, allocations: 447.2 kB / 1.18 GB, free: 5.934 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.837, allocations: 0 / 1.18 GB, free: 5.934 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.33e-05/0.837, allocations: 4.094 kB / 1.18 GB, free: 5.93 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001019/0.8371, allocations: 32.78 kB / 1.18 GB, free: 5.895 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.8372, allocations: 4 kB / 1.18 GB, free: 5.891 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001061/0.8382, allocations: 1.414 MB / 1.182 GB, free: 4.336 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.197e-06/0.8382, allocations: 3.984 kB / 1.182 GB, free: 4.332 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002731/0.8385, allocations: 216.5 kB / 1.182 GB, free: 4.102 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/0.8386, allocations: 104.9 kB / 1.182 GB, free: 3.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.19e-05/0.8387, allocations: 0 / 1.182 GB, free: 3.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001213/0.8388, allocations: 4 kB / 1.182 GB, free: 3.977 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.558e-05/0.8388, allocations: 11.98 kB / 1.182 GB, free: 3.965 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-06/0.8389, allocations: 0 / 1.182 GB, free: 3.965 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001397/0.839, allocations: 143.2 kB / 1.182 GB, free: 3.824 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.293e-06/0.839, allocations: 0 / 1.182 GB, free: 3.824 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003613/0.8394, allocations: 55.78 kB / 1.182 GB, free: 3.77 MB / 0.9044 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.0001378/0.8395, allocations: 100.4 kB / 1.182 GB, free: 3.66 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004221/0.8399, allocations: 210.5 kB / 1.182 GB, free: 3.441 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.84, allocations: 0 / 1.182 GB, free: 3.441 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001585/0.8401, allocations: 151.2 kB / 1.183 GB, free: 3.281 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004197/0.8406, allocations: 42.64 kB / 1.183 GB, free: 3.242 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008085/0.8414, allocations: 392.2 kB / 1.183 GB, free: 2.828 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003428/0.8417, allocations: 0.7475 MB / 1.184 GB, free: 2.055 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.563e-05/0.8418, allocations: 15.44 kB / 1.184 GB, free: 2.039 MB / 0.9044 GB Notification: Performance of SimCode: time 5.61e-07/0.8418, allocations: 0 / 1.184 GB, free: 2.039 MB / 0.9044 GB Notification: Performance of Templates: time 0.005747/0.8476, allocations: 2.985 MB / 1.187 GB, free: 15.06 MB / 0.92 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 -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