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.005025/0.005025, allocations: 102 kB / 15.73 MB, free: 6.062 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.001241/0.001241, allocations: 195 kB / 16.68 MB, free: 5.973 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 4.168 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.92/2.92, allocations: 469.8 MB / 0.7425 GB, free: 7.285 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 71.83 kB / 1.065 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3729/0.3742, allocations: 159.1 MB / 1.221 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004586/0.3787, allocations: 3.092 MB / 1.224 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002304/0.381, allocations: 1.332 MB / 1.225 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001294/0.3812, allocations: 7.938 kB / 1.225 GB, free: 9.332 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001055/0.3822, allocations: 326.8 kB / 1.225 GB, free: 9.012 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003257/0.3826, allocations: 143.2 kB / 1.225 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003257/0.3829, allocations: 147.6 kB / 1.225 GB, free: 8.73 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003462/0.3832, allocations: 302.9 kB / 1.226 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003637/0.3836, allocations: 200.7 kB / 1.226 GB, free: 8.234 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001385/0.3837, allocations: 119.6 kB / 1.226 GB, free: 8.117 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002601/0.384, allocations: 143.4 kB / 1.226 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.008e-05/0.384, allocations: 16 kB / 1.226 GB, free: 7.961 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002578/0.3843, allocations: 175.6 kB / 1.226 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.318e-05/0.3844, allocations: 71.81 kB / 1.226 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.00011/0.3845, allocations: 111.5 kB / 1.227 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004113/0.3849, allocations: 334.8 kB / 1.227 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.3849, allocations: 8 kB / 1.227 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of FrontEnd: time 9.72e-07/0.3849, allocations: 0 / 1.227 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.763e-06/0.3849, allocations: 0 / 1.227 GB, free: 7.273 MB / 0.9825 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.0007634/0.3857, allocations: 0.522 MB / 1.227 GB, free: 6.699 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.3857, allocations: 8.031 kB / 1.227 GB, free: 6.691 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005689/0.3863, allocations: 84.72 kB / 1.228 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002841/0.3866, allocations: 245.9 kB / 1.228 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.3866, allocations: 16.75 kB / 1.228 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.885e-05/0.3866, allocations: 20.36 kB / 1.228 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004282/0.387, allocations: 295.5 kB / 1.228 GB, free: 5.988 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.387, allocations: 4 kB / 1.228 GB, free: 5.984 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.349e-05/0.3871, allocations: 8 kB / 1.228 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.196e-05/0.3871, allocations: 16.36 kB / 1.228 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002847/0.3874, allocations: 193 kB / 1.228 GB, free: 5.773 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.3887, allocations: 1.464 MB / 1.23 GB, free: 4.148 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002252/0.389, allocations: 171.7 kB / 1.23 GB, free: 3.953 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.062e-05/0.389, allocations: 36.83 kB / 1.23 GB, free: 3.914 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.372e-05/0.389, allocations: 0 / 1.23 GB, free: 3.914 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.3891, allocations: 34.62 kB / 1.23 GB, free: 3.871 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 9.41e-07/0.3891, allocations: 4 kB / 1.23 GB, free: 3.867 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004347/0.3895, allocations: 223.5 kB / 1.23 GB, free: 3.621 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.9e-05/0.3895, allocations: 55.41 kB / 1.23 GB, free: 3.555 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001876/0.3897, allocations: 211 kB / 1.23 GB, free: 3.34 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.613e-05/0.3897, allocations: 25.7 kB / 1.23 GB, free: 3.309 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.775e-05/0.3898, allocations: 168.1 kB / 1.231 GB, free: 3.141 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.964e-05/0.3898, allocations: 27.78 kB / 1.231 GB, free: 3.113 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.577e-05/0.3899, allocations: 37.7 kB / 1.231 GB, free: 3.07 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.39, allocations: 326.8 kB / 1.231 GB, free: 2.742 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.978e-05/0.3901, allocations: 35.98 kB / 1.231 GB, free: 2.707 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001016/0.3902, allocations: 100.6 kB / 1.231 GB, free: 2.578 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001665/0.3903, allocations: 152.3 kB / 1.231 GB, free: 2.398 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.3903, allocations: 0 / 1.231 GB, free: 2.398 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002796/0.3906, allocations: 190.2 kB / 1.231 GB, free: 2.203 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.3906, allocations: 14.17 kB / 1.231 GB, free: 2.191 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.526e-06/0.3906, allocations: 0 / 1.231 GB, free: 2.191 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001091/0.3907, allocations: 28.84 kB / 1.231 GB, free: 2.16 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.3909, allocations: 28.22 kB / 1.231 GB, free: 2.133 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001083/0.3919, allocations: 1.422 MB / 1.233 GB, free: 0.5664 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001185/0.3921, allocations: 19.88 kB / 1.233 GB, free: 0.5469 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.3921, allocations: 4 kB / 1.233 GB, free: 0.543 MB / 0.9825 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.0001264/0.3922, allocations: 149.7 kB / 1.233 GB, free: 396 kB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.791e-05/0.3922, allocations: 15.91 kB / 1.233 GB, free: 380 kB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.515e-05/0.3923, allocations: 21.39 kB / 1.233 GB, free: 360 kB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.3923, allocations: 0 / 1.233 GB, free: 360 kB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.3923, allocations: 12 kB / 1.233 GB, free: 348 kB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.3923, allocations: 0 / 1.233 GB, free: 348 kB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004978/0.3928, allocations: 439.3 kB / 1.234 GB, free: 15.85 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3928, allocations: 0 / 1.234 GB, free: 15.85 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.22e-05/0.3928, allocations: 11.94 kB / 1.234 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.358e-05/0.3929, allocations: 20.84 kB / 1.234 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.3929, allocations: 4 kB / 1.234 GB, free: 15.81 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000969/0.3939, allocations: 1.426 MB / 1.235 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3939, allocations: 0 / 1.235 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002065/0.3941, allocations: 216.6 kB / 1.235 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.068e-05/0.3942, allocations: 97 kB / 1.235 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.083e-05/0.3942, allocations: 4 kB / 1.235 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.3943, allocations: 4 kB / 1.235 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.804e-05/0.3943, allocations: 64 / 1.235 GB, free: 13.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.336e-06/0.3943, allocations: 11.98 kB / 1.235 GB, free: 13.89 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001206/0.3944, allocations: 136.5 kB / 1.235 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/0.3944, allocations: 3.938 kB / 1.235 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003123/0.3947, allocations: 59.83 kB / 1.235 GB, free: 13.69 MB / 0.9981 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.0001196/0.3949, allocations: 103.2 kB / 1.236 GB, free: 13.58 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003476/0.3952, allocations: 214.6 kB / 1.236 GB, free: 13.36 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3952, allocations: 0 / 1.236 GB, free: 13.36 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001446/0.3954, allocations: 146.7 kB / 1.236 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003435/0.3957, allocations: 29.81 kB / 1.236 GB, free: 13.17 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006027/0.3963, allocations: 362.6 kB / 1.236 GB, free: 12.79 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003218/0.3966, allocations: 0.7436 MB / 1.237 GB, free: 12.02 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001024/0.3967, allocations: 25.53 kB / 1.237 GB, free: 12 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.155e-05/0.3968, allocations: 11.44 kB / 1.237 GB, free: 11.98 MB / 0.9981 GB Notification: Performance of SimCode: time 3.31e-07/0.3968, allocations: 0 / 1.237 GB, free: 11.98 MB / 0.9981 GB Notification: Performance of Templates: time 0.005274/0.402, allocations: 1.788 MB / 1.239 GB, free: 10.21 MB / 0.9981 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=480 -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