Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001408/0.001409, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001738/0.001739, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 223.3 MB / 240 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.925/2.925, allocations: 462.6 MB / 0.736 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003666/0.0003666, allocations: 9.375 kB / 0.9021 GB, free: 36.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3125, allocations: 159.6 MB / 1.058 GB, free: 5.363 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003455/0.316, allocations: 2.663 MB / 1.061 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001759/0.3178, allocations: 1.243 MB / 1.062 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.3179, allocations: 4 kB / 1.062 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001561/0.3181, allocations: 35.72 kB / 1.062 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003151/0.3184, allocations: 115.4 kB / 1.062 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002866/0.3187, allocations: 95.75 kB / 1.062 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003552/0.319, allocations: 350.9 kB / 1.062 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002818/0.3193, allocations: 215.9 kB / 1.063 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001207/0.3195, allocations: 95.62 kB / 1.063 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002597/0.3197, allocations: 131.5 kB / 1.063 GB, free: 408 kB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.978e-05/0.3198, allocations: 12 kB / 1.063 GB, free: 396 kB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001962/0.32, allocations: 87.81 kB / 1.063 GB, free: 308 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.034e-05/0.3201, allocations: 67.8 kB / 1.063 GB, free: 240 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.006e-05/0.3201, allocations: 61.64 kB / 1.063 GB, free: 172 kB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003226/0.3205, allocations: 243.7 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.3205, allocations: 0 / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.472e-06/0.3205, allocations: 0 / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.977e-06/0.3205, allocations: 4 kB / 1.063 GB, free: 15.93 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.0008359/0.3213, allocations: 494.9 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.3214, allocations: 8.031 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005689/0.322, allocations: 79.64 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003027/0.3223, allocations: 240.2 kB / 1.064 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/0.3223, allocations: 12.38 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.425e-05/0.3224, allocations: 19.98 kB / 1.064 GB, free: 15 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004684/0.3228, allocations: 295.2 kB / 1.064 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.3228, allocations: 0 / 1.064 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.928e-05/0.3229, allocations: 4 kB / 1.064 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.336e-05/0.3229, allocations: 36.28 kB / 1.064 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003097/0.3233, allocations: 189 kB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001549/0.3248, allocations: 1.464 MB / 1.066 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00026/0.3251, allocations: 175.7 kB / 1.066 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.328e-05/0.3252, allocations: 32.84 kB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.171e-05/0.3252, allocations: 3.938 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.001e-05/0.3252, allocations: 38.56 kB / 1.066 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.3252, allocations: 4 kB / 1.066 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004869/0.3257, allocations: 223.3 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.3258, allocations: 55.41 kB / 1.067 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002108/0.326, allocations: 198.9 kB / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.326, allocations: 25.7 kB / 1.067 GB, free: 12 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.3261, allocations: 171.7 kB / 1.067 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.009e-05/0.3262, allocations: 23.72 kB / 1.067 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.985e-06/0.3262, allocations: 4 kB / 1.067 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001304/0.3263, allocations: 326.8 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.315e-05/0.3264, allocations: 35.97 kB / 1.067 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/0.3265, allocations: 101.9 kB / 1.067 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.487e-05/0.3266, allocations: 47.98 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3266, allocations: 0 / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003079/0.3269, allocations: 190.1 kB / 1.068 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.3269, allocations: 8 kB / 1.068 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.327, allocations: 0 / 1.068 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001458/0.3271, allocations: 28.84 kB / 1.068 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.3272, allocations: 27.92 kB / 1.068 GB, free: 11 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009936/0.3282, allocations: 1.327 MB / 1.069 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001071/0.3283, allocations: 19.78 kB / 1.069 GB, free: 9.52 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.3284, allocations: 8.156 kB / 1.069 GB, free: 9.512 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001199/0.3285, allocations: 145.8 kB / 1.069 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.317e-05/0.3285, allocations: 11.91 kB / 1.069 GB, free: 9.348 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.944e-05/0.3286, allocations: 21.39 kB / 1.069 GB, free: 9.332 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.3286, allocations: 4 kB / 1.069 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/0.3286, allocations: 3.953 kB / 1.069 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.3286, allocations: 3.938 kB / 1.069 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004759/0.3291, allocations: 451.2 kB / 1.07 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3291, allocations: 3.938 kB / 1.07 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.761e-05/0.3291, allocations: 11.95 kB / 1.07 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.884e-05/0.3292, allocations: 20.84 kB / 1.07 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-06/0.3292, allocations: 4 kB / 1.07 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008936/0.3301, allocations: 1.307 MB / 1.071 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3301, allocations: 0 / 1.071 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002138/0.3304, allocations: 212.5 kB / 1.071 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.977e-05/0.3304, allocations: 100.9 kB / 1.071 GB, free: 6.992 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.865e-05/0.3305, allocations: 7.938 kB / 1.071 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.3306, allocations: 7.984 kB / 1.071 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.038e-05/0.3306, allocations: 4 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.3306, allocations: 0 / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001246/0.3307, allocations: 152.7 kB / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3307, allocations: 0 / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000324/0.3311, allocations: 51.84 kB / 1.071 GB, free: 6.773 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001084/0.3312, allocations: 102.2 kB / 1.072 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003278/0.3315, allocations: 210.5 kB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.3315, allocations: 0 / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001399/0.3317, allocations: 143.2 kB / 1.072 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003629/0.332, allocations: 40.11 kB / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005738/0.3326, allocations: 427.2 kB / 1.072 GB, free: 5.812 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003148/0.333, allocations: 0.7517 MB / 1.073 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.316e-05/0.3331, allocations: 25.53 kB / 1.073 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.879e-05/0.3331, allocations: 11.44 kB / 1.073 GB, free: 5 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3331, allocations: 0 / 1.073 GB, free: 5 MB / 0.8262 GB Notification: Performance of Templates: time 0.004183/0.3373, allocations: 1.629 MB / 1.075 GB, free: 3.395 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches