Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 194 kB / 16.53 MB, free: 6.391 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.318/1.318, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.251/2.251, allocations: 390.3 MB / 0.6647 GB, free: 440 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 71.84 kB / 0.8126 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5592/0.5605, allocations: 140.4 MB / 0.9497 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004476/0.565, allocations: 3.075 MB / 0.9527 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001826/0.5668, allocations: 1.322 MB / 0.954 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001823/0.567, allocations: 8.75 kB / 0.954 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001034/0.5681, allocations: 323.3 kB / 0.9543 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004669/0.5686, allocations: 148.6 kB / 0.9545 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005817/0.5692, allocations: 143.5 kB / 0.9546 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004625/0.5697, allocations: 299.8 kB / 0.9549 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000516/0.5702, allocations: 245.9 kB / 0.9551 GB, free: 5 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002377/0.5704, allocations: 123.1 kB / 0.9552 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003901/0.5708, allocations: 140 kB / 0.9554 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.409e-05/0.5709, allocations: 18.88 kB / 0.9554 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003585/0.5713, allocations: 166.8 kB / 0.9556 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.5714, allocations: 78.52 kB / 0.9556 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000186/0.5716, allocations: 114.5 kB / 0.9557 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005448/0.5721, allocations: 327.6 kB / 0.9561 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.5722, allocations: 0 / 0.9561 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.162e-06/0.5722, allocations: 1.75 kB / 0.9561 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.728e-06/0.5722, allocations: 0 / 0.9561 GB, free: 4.438 MB / 0.7169 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.0009204/0.5731, allocations: 0.5159 MB / 0.9566 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.5732, allocations: 13.62 kB / 0.9566 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.885e-05/0.5733, allocations: 62.81 kB / 0.9566 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008363/0.5741, allocations: 76.86 kB / 0.9567 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003241/0.5744, allocations: 239 kB / 0.9569 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.5745, allocations: 17.62 kB / 0.9569 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.922e-05/0.5745, allocations: 20.25 kB / 0.957 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005675/0.5751, allocations: 309.2 kB / 0.9573 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.5751, allocations: 0 / 0.9573 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.626e-05/0.5752, allocations: 6.75 kB / 0.9573 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.918e-05/0.5752, allocations: 20.73 kB / 0.9573 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004505/0.5757, allocations: 193.2 kB / 0.9575 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001728/0.5775, allocations: 1.465 MB / 0.9589 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003782/0.5778, allocations: 177.1 kB / 0.9591 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.462e-05/0.578, allocations: 39.75 kB / 0.9591 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.116e-05/0.578, allocations: 1.281 kB / 0.9591 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.753e-05/0.578, allocations: 31.66 kB / 0.9591 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.963e-06/0.578, allocations: 1.062 kB / 0.9591 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0007186/0.5788, allocations: 229.6 kB / 0.9594 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.419e-05/0.5788, allocations: 52.5 kB / 0.9594 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002946/0.5791, allocations: 195.5 kB / 0.9596 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.5791, allocations: 26.8 kB / 0.9596 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.5793, allocations: 167.4 kB / 0.9598 GB, free: 1.008 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.752e-05/0.5793, allocations: 23.22 kB / 0.9598 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.431e-05/0.5794, allocations: 38.02 kB / 0.9598 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.941e-05/0.5795, allocations: 330.4 kB / 0.9602 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.5796, allocations: 30.95 kB / 0.9602 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001823/0.5798, allocations: 106.7 kB / 0.9603 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003245/0.5801, allocations: 145.2 kB / 0.9604 GB, free: 388 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.5802, allocations: 1 kB / 0.9604 GB, free: 388 kB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004772/0.5806, allocations: 194.6 kB / 0.9606 GB, free: 264 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.5807, allocations: 6.562 kB / 0.9606 GB, free: 264 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.5807, allocations: 2.156 kB / 0.9606 GB, free: 264 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002068/0.5809, allocations: 25.72 kB / 0.9606 GB, free: 248 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/0.5811, allocations: 30.17 kB / 0.9607 GB, free: 240 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001569/0.5827, allocations: 1.427 MB / 0.9621 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001938/0.5829, allocations: 25.53 kB / 0.9621 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.876e-05/0.5829, allocations: 5.656 kB / 0.9621 GB, free: 14.75 MB / 0.7325 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.0002058/0.5831, allocations: 152 kB / 0.9622 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.713e-05/0.5832, allocations: 10.88 kB / 0.9623 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.298e-05/0.5832, allocations: 17.48 kB / 0.9623 GB, free: 14.6 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.5833, allocations: 1.062 kB / 0.9623 GB, free: 14.6 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.5833, allocations: 4.062 kB / 0.9623 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.5833, allocations: 1.125 kB / 0.9623 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007223/0.584, allocations: 444.8 kB / 0.9627 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.584, allocations: 0.8125 kB / 0.9627 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.2e-05/0.5841, allocations: 10.03 kB / 0.9627 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001146/0.5842, allocations: 23.09 kB / 0.9627 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.5843, allocations: 9.062 kB / 0.9627 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001564/0.5858, allocations: 1.411 MB / 0.9641 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.5859, allocations: 1.156 kB / 0.9641 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003107/0.5862, allocations: 208.3 kB / 0.9643 GB, free: 12.52 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000118/0.5863, allocations: 102.7 kB / 0.9644 GB, free: 12.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.21e-05/0.5864, allocations: 1.188 kB / 0.9644 GB, free: 12.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001909/0.5866, allocations: 7.875 kB / 0.9644 GB, free: 12.4 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.011e-05/0.5866, allocations: 14.22 kB / 0.9644 GB, free: 12.39 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.5866, allocations: 5.281 kB / 0.9644 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001906/0.5869, allocations: 152.2 kB / 0.9646 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.01e-07/0.5869, allocations: 0 / 0.9646 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003505/0.5872, allocations: 52.91 kB / 0.9646 GB, free: 12.26 MB / 0.7325 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.0004929/0.5877, allocations: 0.7422 MB / 0.9654 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003721/0.5881, allocations: 208.1 kB / 0.9656 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.5881, allocations: 1.594 kB / 0.9656 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001679/0.5883, allocations: 159.8 kB / 0.9657 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003563/0.5887, allocations: 41.02 kB / 0.9658 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002375/0.591, allocations: 2.035 MB / 0.9677 GB, free: 9.473 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.5914, allocations: 0.7467 MB / 0.9685 GB, free: 8.742 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001049/0.5915, allocations: 25.66 kB / 0.9685 GB, free: 8.727 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.372e-05/0.5916, allocations: 55.11 kB / 0.9686 GB, free: 8.684 MB / 0.7325 GB Notification: Performance of SimCode: time 2.4e-07/0.5916, allocations: 0 / 0.9686 GB, free: 8.684 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06288/0.6545, allocations: 3.627 MB / 0.9721 GB, free: 6.848 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/12.23, allocations: 7.031 kB / 0.9721 GB, free: 6.848 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches