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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_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.0007536/0.0007536, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004593/0.004593, allocations: 170 kB / 16.26 MB, free: 6.613 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.329/1.329, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.494/2.494, allocations: 443.4 MB / 0.7176 GB, free: 1.422 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003558/0.0003559, allocations: 8.688 kB / 0.8797 GB, free: 41.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2703/0.2706, allocations: 155.2 MB / 1.031 GB, free: 4.223 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003286/0.274, allocations: 2.765 MB / 1.034 GB, free: 1.445 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001739/0.2757, allocations: 1.313 MB / 1.035 GB, free: 128 kB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.903e-05/0.2758, allocations: 7.938 kB / 1.035 GB, free: 120 kB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.276, allocations: 31.72 kB / 1.035 GB, free: 88 kB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003482/0.2763, allocations: 143.4 kB / 1.035 GB, free: 15.95 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002937/0.2766, allocations: 127.7 kB / 1.036 GB, free: 15.82 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003776/0.277, allocations: 434.7 kB / 1.036 GB, free: 15.39 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002941/0.2773, allocations: 237.7 kB / 1.036 GB, free: 15.14 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.2775, allocations: 95.62 kB / 1.036 GB, free: 15.05 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002447/0.2777, allocations: 131.5 kB / 1.036 GB, free: 14.92 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.597e-05/0.2777, allocations: 12 kB / 1.036 GB, free: 14.91 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002718/0.278, allocations: 203.6 kB / 1.037 GB, free: 14.71 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 7.696e-05/0.2781, allocations: 71.78 kB / 1.037 GB, free: 14.64 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.2782, allocations: 129.2 kB / 1.037 GB, free: 14.51 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003322/0.2786, allocations: 330.9 kB / 1.037 GB, free: 14.18 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2786, allocations: 0 / 1.037 GB, free: 14.18 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.104e-06/0.2786, allocations: 0 / 1.037 GB, free: 14.18 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.755e-06/0.2786, allocations: 0 / 1.037 GB, free: 14.18 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.0006602/0.2793, allocations: 495 kB / 1.038 GB, free: 13.65 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.2793, allocations: 11.97 kB / 1.038 GB, free: 13.64 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.493e-05/0.2794, allocations: 58.73 kB / 1.038 GB, free: 13.57 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005477/0.2799, allocations: 80.58 kB / 1.038 GB, free: 13.49 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002436/0.2802, allocations: 236 kB / 1.038 GB, free: 13.22 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.711e-05/0.2802, allocations: 12.75 kB / 1.038 GB, free: 13.21 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.418e-05/0.2802, allocations: 20.36 kB / 1.038 GB, free: 13.19 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004108/0.2807, allocations: 303.3 kB / 1.038 GB, free: 12.87 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.2807, allocations: 0 / 1.038 GB, free: 12.87 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.424e-05/0.2807, allocations: 8 kB / 1.038 GB, free: 12.86 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.059e-05/0.2807, allocations: 16.36 kB / 1.038 GB, free: 12.85 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002868/0.281, allocations: 197 kB / 1.038 GB, free: 12.66 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/0.2823, allocations: 1.468 MB / 1.04 GB, free: 11.03 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002364/0.2826, allocations: 175.7 kB / 1.04 GB, free: 10.83 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.558e-05/0.2826, allocations: 36.84 kB / 1.04 GB, free: 10.79 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 6.512e-06/0.2827, allocations: 0 / 1.04 GB, free: 10.79 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.2827, allocations: 38.56 kB / 1.04 GB, free: 10.74 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.2827, allocations: 0 / 1.04 GB, free: 10.74 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0004273/0.2831, allocations: 223.3 kB / 1.04 GB, free: 10.5 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.432e-05/0.2832, allocations: 59.41 kB / 1.04 GB, free: 10.43 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000177/0.2833, allocations: 199 kB / 1.041 GB, free: 10.22 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.2834, allocations: 25.7 kB / 1.041 GB, free: 10.19 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 8.798e-05/0.2835, allocations: 167.7 kB / 1.041 GB, free: 10.02 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.991e-05/0.2835, allocations: 27.56 kB / 1.041 GB, free: 9.996 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.084e-05/0.2835, allocations: 21.7 kB / 1.041 GB, free: 9.969 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001009/0.2836, allocations: 330.8 kB / 1.041 GB, free: 9.637 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.665e-05/0.2837, allocations: 31.98 kB / 1.041 GB, free: 9.605 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.2838, allocations: 104.5 kB / 1.041 GB, free: 9.473 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000162/0.284, allocations: 144.4 kB / 1.041 GB, free: 9.301 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.284, allocations: 7.938 kB / 1.041 GB, free: 9.293 MB / 0.795 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002872/0.2843, allocations: 190.1 kB / 1.042 GB, free: 9.098 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.2843, allocations: 4 kB / 1.042 GB, free: 9.094 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.2843, allocations: 4.062 kB / 1.042 GB, free: 9.09 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001409/0.2845, allocations: 28.84 kB / 1.042 GB, free: 9.059 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.2846, allocations: 31.92 kB / 1.042 GB, free: 9.027 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008973/0.2855, allocations: 1.319 MB / 1.043 GB, free: 7.574 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001163/0.2856, allocations: 23.78 kB / 1.043 GB, free: 7.551 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.008e-05/0.2856, allocations: 4.156 kB / 1.043 GB, free: 7.547 MB / 0.795 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.0001136/0.2857, allocations: 157.7 kB / 1.043 GB, free: 7.383 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.813e-05/0.2858, allocations: 15.84 kB / 1.043 GB, free: 7.367 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.951e-05/0.2858, allocations: 21.34 kB / 1.043 GB, free: 7.348 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.2858, allocations: 0 / 1.043 GB, free: 7.348 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.2858, allocations: 4 kB / 1.043 GB, free: 7.344 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.2858, allocations: 3.984 kB / 1.043 GB, free: 7.34 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004544/0.2863, allocations: 443.2 kB / 1.044 GB, free: 6.848 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2863, allocations: 0 / 1.044 GB, free: 6.848 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.044e-05/0.2864, allocations: 15.92 kB / 1.044 GB, free: 6.832 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.864e-05/0.2864, allocations: 20.84 kB / 1.044 GB, free: 6.809 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-06/0.2864, allocations: 4 kB / 1.044 GB, free: 6.805 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008217/0.2873, allocations: 1.304 MB / 1.045 GB, free: 5.367 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.2873, allocations: 4 kB / 1.045 GB, free: 5.363 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002092/0.2875, allocations: 216.4 kB / 1.045 GB, free: 5.133 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 6.497e-05/0.2876, allocations: 92.91 kB / 1.045 GB, free: 5.023 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.934e-05/0.2876, allocations: 7.938 kB / 1.045 GB, free: 5.016 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.2877, allocations: 4 kB / 1.045 GB, free: 5.012 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.11e-05/0.2877, allocations: 7.984 kB / 1.045 GB, free: 5.004 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.2878, allocations: 0 / 1.045 GB, free: 5.004 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001169/0.2879, allocations: 148.9 kB / 1.045 GB, free: 4.859 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.423e-06/0.2879, allocations: 0 / 1.045 GB, free: 4.859 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003036/0.2882, allocations: 55.78 kB / 1.045 GB, free: 4.805 MB / 0.795 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.0004435/0.2886, allocations: 0.7521 MB / 1.046 GB, free: 4.023 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.000324/0.289, allocations: 206.7 kB / 1.046 GB, free: 3.809 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.289, allocations: 0 / 1.046 GB, free: 3.809 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001403/0.2891, allocations: 150.8 kB / 1.046 GB, free: 3.648 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003503/0.2895, allocations: 41.39 kB / 1.047 GB, free: 3.609 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001967/0.2915, allocations: 2.129 MB / 1.049 GB, free: 1.328 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.2918, allocations: 0.7439 MB / 1.049 GB, free: 0.5586 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 9.258e-05/0.2919, allocations: 29.52 kB / 1.049 GB, free: 0.5312 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.171e-05/0.292, allocations: 51.42 kB / 1.049 GB, free: 492 kB / 0.795 GB Notification: Performance of SimCode: time 3.61e-07/0.292, allocations: 0 / 1.049 GB, free: 492 kB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01402/0.306, allocations: 3.399 MB / 1.053 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001745/0.3062, allocations: 224.8 kB / 1.053 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.669/1.975, allocations: 4 kB / 1.053 GB, free: 12.99 MB / 0.8106 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > 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/jenkins1/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