Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.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.DCLine,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLine,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLine",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.001031/0.001031, 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.008284/0.008284, allocations: 169.9 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.315/1.315, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.598/2.598, allocations: 462.6 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003143/0.0003143, allocations: 12.09 kB / 0.9029 GB, free: 36.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2677, allocations: 159.6 MB / 1.059 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.00677/0.2745, allocations: 5.899 MB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.006024/0.2806, allocations: 4.452 MB / 1.069 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005132/0.2811, allocations: 19.88 kB / 1.069 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000512/0.2816, allocations: 146.9 kB / 1.069 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.00187/0.2835, allocations: 0.7152 MB / 1.07 GB, free: 9.609 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007095/0.2842, allocations: 282.8 kB / 1.07 GB, free: 9.336 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001604/0.2859, allocations: 1.445 MB / 1.071 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006947/0.2866, allocations: 0.5419 MB / 1.072 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005959/0.2872, allocations: 390.4 kB / 1.072 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006935/0.2879, allocations: 470.1 kB / 1.073 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.472e-05/0.288, allocations: 36 kB / 1.073 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005539/0.2885, allocations: 307.4 kB / 1.073 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002033/0.2888, allocations: 211.2 kB / 1.073 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000383/0.2891, allocations: 391.7 kB / 1.074 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.00098/0.2901, allocations: 1.031 MB / 1.075 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.2901, allocations: 4 kB / 1.075 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.623e-06/0.2902, allocations: 0 / 1.075 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.041e-05/0.2902, allocations: 0 / 1.075 GB, free: 4.508 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.001664/0.2918, allocations: 0.9622 MB / 1.076 GB, free: 3.496 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.2919, allocations: 15.97 kB / 1.076 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001474/0.2921, allocations: 106.6 kB / 1.076 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003301/0.2954, allocations: 0.6514 MB / 1.076 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007797/0.2962, allocations: 0.5386 MB / 1.077 GB, free: 2.137 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.482e-05/0.2962, allocations: 41.67 kB / 1.077 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.599e-05/0.2963, allocations: 51.94 kB / 1.077 GB, free: 2.043 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001933/0.2982, allocations: 1.026 MB / 1.078 GB, free: 0.9727 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.2983, allocations: 7.922 kB / 1.078 GB, free: 0.9648 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.81e-05/0.2983, allocations: 23.98 kB / 1.078 GB, free: 0.9414 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.918e-05/0.2984, allocations: 45.3 kB / 1.078 GB, free: 0.8984 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002402/0.3008, allocations: 1.02 MB / 1.079 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004/0.3048, allocations: 3.513 MB / 1.082 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001468/0.3063, allocations: 0.5295 MB / 1.083 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000591/0.3069, allocations: 240.7 kB / 1.083 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/0.307, allocations: 11.97 kB / 1.083 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.307, allocations: 38.56 kB / 1.083 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 2.415e-06/0.307, allocations: 4 kB / 1.083 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of matching and sorting (n=43): time 0.006954/0.314, allocations: 2.215 MB / 1.085 GB, free: 8.957 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.278e-05/0.314, allocations: 63.39 kB / 1.086 GB, free: 8.883 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006489/0.3147, allocations: 0.5704 MB / 1.086 GB, free: 8.301 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.137e-05/0.3147, allocations: 37.64 kB / 1.086 GB, free: 8.258 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002331/0.315, allocations: 360.2 kB / 1.086 GB, free: 7.902 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.3151, allocations: 145.8 kB / 1.087 GB, free: 7.758 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.371e-05/0.3152, allocations: 53.62 kB / 1.087 GB, free: 7.699 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001435/0.3153, allocations: 374.7 kB / 1.087 GB, free: 7.324 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006955/0.316, allocations: 276.9 kB / 1.087 GB, free: 7.051 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007535/0.3168, allocations: 385.8 kB / 1.088 GB, free: 6.633 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001454/0.3182, allocations: 0.6655 MB / 1.088 GB, free: 5.926 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3183, allocations: 4 kB / 1.088 GB, free: 5.922 MB / 0.8419 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002421/0.3207, allocations: 0.9818 MB / 1.089 GB, free: 4.914 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.3208, allocations: 180.5 kB / 1.089 GB, free: 4.691 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.3208, allocations: 4 kB / 1.089 GB, free: 4.688 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001088/0.3219, allocations: 280.8 kB / 1.09 GB, free: 4.395 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005947/0.3225, allocations: 119.8 kB / 1.09 GB, free: 4.277 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006667/0.3292, allocations: 8.491 MB / 1.098 GB, free: 11 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005942/0.3298, allocations: 51.95 kB / 1.098 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.209e-05/0.3299, allocations: 19.98 kB / 1.098 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.055e-06/0.3299, allocations: 4 kB / 1.098 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002401/0.3323, allocations: 1.097 MB / 1.099 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.473e-06/0.3323, allocations: 4 kB / 1.099 GB, free: 9.746 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007455/0.3331, allocations: 221.4 kB / 1.099 GB, free: 9.512 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005895/0.3337, allocations: 135.8 kB / 1.1 GB, free: 9.379 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005752/0.3394, allocations: 8.156 MB / 1.108 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000605/0.34, allocations: 59.94 kB / 1.108 GB, free: 372 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.344e-05/0.3401, allocations: 20 kB / 1.108 GB, free: 352 kB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (47): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.00041/0.3405, allocations: 310.5 kB / 1.108 GB, free: 32 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001424/0.3407, allocations: 71.2 kB / 1.108 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001785/0.3408, allocations: 82.31 kB / 1.108 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.3409, allocations: 4 kB / 1.108 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/0.3409, allocations: 4 kB / 1.108 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.3409, allocations: 0 / 1.108 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008487/0.3417, allocations: 0.6456 MB / 1.109 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.3418, allocations: 4 kB / 1.109 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004912/0.3423, allocations: 95.92 kB / 1.109 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009654/0.3432, allocations: 268.8 kB / 1.109 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.206e-05/0.3433, allocations: 7.938 kB / 1.109 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006146/0.3494, allocations: 8.431 MB / 1.117 GB, free: 5.555 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.3494, allocations: 0 / 1.117 GB, free: 5.555 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002237/0.3517, allocations: 0.9639 MB / 1.118 GB, free: 4.555 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002321/0.3519, allocations: 184.2 kB / 1.118 GB, free: 4.355 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.104e-05/0.352, allocations: 11.94 kB / 1.118 GB, free: 4.344 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004977/0.3525, allocations: 51.95 kB / 1.118 GB, free: 4.293 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.3526, allocations: 43.94 kB / 1.119 GB, free: 4.25 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.005e-05/0.3527, allocations: 15.94 kB / 1.119 GB, free: 4.234 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004245/0.3531, allocations: 399.1 kB / 1.119 GB, free: 3.852 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3531, allocations: 0 / 1.119 GB, free: 3.852 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001007/0.3541, allocations: 300 kB / 1.119 GB, free: 3.559 MB / 0.8731 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 (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002473/0.3566, allocations: 1.517 MB / 1.121 GB, free: 1.996 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.003675/0.3603, allocations: 2.419 MB / 1.123 GB, free: 15.42 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.3603, allocations: 3.938 kB / 1.123 GB, free: 15.41 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001316/0.3616, allocations: 1.023 MB / 1.124 GB, free: 14.31 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009812/0.3626, allocations: 205.5 kB / 1.124 GB, free: 14.11 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/0.3736, allocations: 6.796 MB / 1.131 GB, free: 7.117 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005477/0.3742, allocations: 0.9821 MB / 1.132 GB, free: 6.109 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0005754/0.3747, allocations: 145.4 kB / 1.132 GB, free: 5.965 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003111/0.3751, allocations: 235.4 kB / 1.132 GB, free: 5.734 MB / 0.8887 GB Notification: Performance of SimCode: time 6.02e-07/0.3751, allocations: 4 kB / 1.132 GB, free: 5.73 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0359/0.411, allocations: 18.71 MB / 1.15 GB, free: 3.336 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002231/0.4112, allocations: 228.7 kB / 1.151 GB, free: 3.086 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.251/2.663, allocations: 6.047 kB / 1.151 GB, free: 3.082 MB / 0.9044 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLine.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_DCLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches