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.001258/0.001258, allocations: 107 kB / 16.36 MB, free: 6.336 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.00131/0.00131, allocations: 195.3 kB / 17.29 MB, free: 5.883 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.364/1.364, allocations: 222.9 MB / 241 MB, free: 15.17 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.459/2.459, allocations: 437.1 MB / 0.7112 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001967, allocations: 55.97 kB / 0.8707 GB, free: 1.488 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3663/0.3683, allocations: 151.6 MB / 1.019 GB, free: 9.906 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004901/0.3733, allocations: 3.078 MB / 1.022 GB, free: 6.809 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002002/0.3753, allocations: 1.34 MB / 1.023 GB, free: 5.461 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001264/0.3754, allocations: 4 kB / 1.023 GB, free: 5.457 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.3765, allocations: 331.5 kB / 1.023 GB, free: 5.133 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.000338/0.3769, allocations: 143.3 kB / 1.024 GB, free: 4.992 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004039/0.3773, allocations: 137 kB / 1.024 GB, free: 4.859 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003882/0.3777, allocations: 310.9 kB / 1.024 GB, free: 4.555 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004384/0.3781, allocations: 232.3 kB / 1.024 GB, free: 4.328 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001503/0.3783, allocations: 127.6 kB / 1.024 GB, free: 4.203 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002788/0.3786, allocations: 139.5 kB / 1.024 GB, free: 4.066 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.266e-05/0.3786, allocations: 23.94 kB / 1.024 GB, free: 4.043 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002927/0.3789, allocations: 163.6 kB / 1.025 GB, free: 3.883 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 9.524e-05/0.379, allocations: 83.78 kB / 1.025 GB, free: 3.801 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001261/0.3791, allocations: 99.55 kB / 1.025 GB, free: 3.703 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0004217/0.3796, allocations: 342.9 kB / 1.025 GB, free: 3.367 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.3796, allocations: 3.938 kB / 1.025 GB, free: 3.363 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.783e-06/0.3796, allocations: 0 / 1.025 GB, free: 3.363 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.464e-06/0.3796, allocations: 0 / 1.025 GB, free: 3.363 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.0008374/0.3805, allocations: 0.5147 MB / 1.026 GB, free: 2.797 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.3805, allocations: 12.92 kB / 1.026 GB, free: 2.785 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005911/0.3811, allocations: 80.58 kB / 1.026 GB, free: 2.707 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003341/0.3814, allocations: 243.9 kB / 1.026 GB, free: 2.43 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.3815, allocations: 20.75 kB / 1.026 GB, free: 2.41 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.946e-05/0.3815, allocations: 16.38 kB / 1.026 GB, free: 2.395 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004338/0.3819, allocations: 299.5 kB / 1.026 GB, free: 2.082 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.382, allocations: 3.938 kB / 1.026 GB, free: 2.078 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.828e-05/0.382, allocations: 12 kB / 1.026 GB, free: 2.066 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.618e-05/0.382, allocations: 16.36 kB / 1.026 GB, free: 2.051 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002951/0.3823, allocations: 197 kB / 1.026 GB, free: 1.859 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001433/0.3838, allocations: 1.452 MB / 1.028 GB, free: 248 kB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002449/0.384, allocations: 171.7 kB / 1.028 GB, free: 48 kB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.089e-05/0.3841, allocations: 36.84 kB / 1.028 GB, free: 8 kB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.021e-05/0.3841, allocations: 8.031 kB / 1.028 GB, free: 0 / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.3842, allocations: 34.66 kB / 1.028 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.243e-06/0.3842, allocations: 0 / 1.028 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004696/0.3847, allocations: 227.4 kB / 1.028 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.237e-05/0.3847, allocations: 51.41 kB / 1.028 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002044/0.3849, allocations: 200 kB / 1.029 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.3849, allocations: 33.64 kB / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.638e-05/0.385, allocations: 171.6 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.091e-05/0.3851, allocations: 23.66 kB / 1.029 GB, free: 15.2 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.765e-05/0.3851, allocations: 37.61 kB / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001146/0.3853, allocations: 326.8 kB / 1.029 GB, free: 14.83 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.302e-05/0.3853, allocations: 31.98 kB / 1.029 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.413e-05/0.3854, allocations: 100.6 kB / 1.029 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001627/0.3856, allocations: 148.4 kB / 1.029 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.3856, allocations: 3.938 kB / 1.029 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002889/0.3859, allocations: 190.2 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.3859, allocations: 8 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.3859, allocations: 0 / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001607/0.3861, allocations: 32.78 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.3862, allocations: 23.98 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00126/0.3875, allocations: 1.422 MB / 1.031 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000191/0.3877, allocations: 23.84 kB / 1.031 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.3877, allocations: 4 kB / 1.031 GB, free: 12.65 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.0001856/0.3879, allocations: 155.8 kB / 1.031 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.113e-05/0.388, allocations: 15.81 kB / 1.031 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.259e-05/0.3881, allocations: 21.39 kB / 1.031 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.3881, allocations: 0 / 1.031 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.3881, allocations: 4.062 kB / 1.031 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.3881, allocations: 4 kB / 1.031 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007379/0.3888, allocations: 447.2 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.3889, allocations: 4 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.547e-05/0.3889, allocations: 8 kB / 1.032 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001028/0.389, allocations: 16.84 kB / 1.032 GB, free: 11.92 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.3891, allocations: 8 kB / 1.032 GB, free: 11.91 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001306/0.3904, allocations: 1.41 MB / 1.033 GB, free: 10.35 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3904, allocations: 3.938 kB / 1.033 GB, free: 10.35 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003066/0.3907, allocations: 224.6 kB / 1.033 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001095/0.3908, allocations: 97 kB / 1.033 GB, free: 9.996 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.606e-05/0.3909, allocations: 0 / 1.033 GB, free: 9.996 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001756/0.3911, allocations: 8 kB / 1.033 GB, free: 9.988 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.986e-05/0.3911, allocations: 3.984 kB / 1.033 GB, free: 9.984 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.3911, allocations: 4 kB / 1.033 GB, free: 9.98 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000183/0.3913, allocations: 139.2 kB / 1.034 GB, free: 9.844 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.91e-07/0.3913, allocations: 4 kB / 1.034 GB, free: 9.84 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0005816/0.3919, allocations: 55.84 kB / 1.034 GB, free: 9.785 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.0001391/0.3921, allocations: 99.23 kB / 1.034 GB, free: 9.68 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004878/0.3926, allocations: 214.4 kB / 1.034 GB, free: 9.457 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3926, allocations: 288 / 1.034 GB, free: 9.457 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002071/0.3928, allocations: 151.2 kB / 1.034 GB, free: 9.297 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005658/0.3934, allocations: 37.27 kB / 1.034 GB, free: 9.262 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008564/0.3943, allocations: 358.5 kB / 1.034 GB, free: 8.883 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004489/0.3947, allocations: 0.7514 MB / 1.035 GB, free: 8.105 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001224/0.3949, allocations: 21.55 kB / 1.035 GB, free: 8.086 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.632e-05/0.3949, allocations: 15.44 kB / 1.035 GB, free: 8.07 MB / 0.8106 GB Notification: Performance of SimCode: time 2.91e-07/0.3949, allocations: 0 / 1.035 GB, free: 8.07 MB / 0.8106 GB Notification: Performance of Templates: time 0.006812/0.4017, allocations: 1.758 MB / 1.037 GB, free: 6.34 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 cvode -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