Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.RCModel,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Lines_Examples_RCModel",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.008252/0.008252, allocations: 104.8 kB / 15.73 MB, free: 6.039 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.001944/0.001944, allocations: 193 kB / 16.67 MB, free: 5.969 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.383/1.383, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.559/2.559, allocations: 437 MB / 0.7105 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 63.89 kB / 1.018 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2912, allocations: 151.6 MB / 1.166 GB, free: 7.336 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006298/0.2975, allocations: 4.352 MB / 1.17 GB, free: 2.957 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.003162/0.3007, allocations: 1.866 MB / 1.172 GB, free: 1.082 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003666/0.3011, allocations: 11.94 kB / 1.172 GB, free: 1.07 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001795/0.3029, allocations: 0.5992 MB / 1.173 GB, free: 480 kB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0007067/0.3036, allocations: 258.6 kB / 1.173 GB, free: 220 kB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006869/0.3043, allocations: 251.4 kB / 1.173 GB, free: 15.97 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0007579/0.3051, allocations: 0.6151 MB / 1.174 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007078/0.3058, allocations: 461.7 kB / 1.174 GB, free: 14.9 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003521/0.3062, allocations: 251.1 kB / 1.175 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005161/0.3067, allocations: 271 kB / 1.175 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 8.107e-05/0.3068, allocations: 36 kB / 1.175 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004939/0.3073, allocations: 259.4 kB / 1.175 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.000156/0.3075, allocations: 143.6 kB / 1.175 GB, free: 13.96 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002462/0.3077, allocations: 222.9 kB / 1.175 GB, free: 13.74 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0007233/0.3084, allocations: 0.6122 MB / 1.176 GB, free: 13.13 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.3085, allocations: 3.984 kB / 1.176 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.724e-06/0.3085, allocations: 4 kB / 1.176 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.825e-06/0.3085, allocations: 0 / 1.176 GB, free: 13.12 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001244/0.3097, allocations: 0.7096 MB / 1.177 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.3098, allocations: 12.03 kB / 1.177 GB, free: 12.35 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.305e-05/0.3099, allocations: 78.72 kB / 1.177 GB, free: 12.27 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009599/0.3108, allocations: 156.2 kB / 1.177 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004904/0.3113, allocations: 338.5 kB / 1.177 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.58e-05/0.3114, allocations: 29.36 kB / 1.177 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.666e-05/0.3115, allocations: 32.38 kB / 1.177 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000735/0.3122, allocations: 0.5355 MB / 1.178 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.3122, allocations: 3.938 kB / 1.178 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.142e-05/0.3123, allocations: 16 kB / 1.178 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.524e-05/0.3123, allocations: 28.64 kB / 1.178 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000556/0.3129, allocations: 386.3 kB / 1.178 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002403/0.3153, allocations: 2.399 MB / 1.181 GB, free: 8.07 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005186/0.3158, allocations: 266.5 kB / 1.181 GB, free: 7.801 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001609/0.316, allocations: 104.8 kB / 1.181 GB, free: 7.695 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.316, allocations: 4 kB / 1.181 GB, free: 7.691 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.3161, allocations: 38.5 kB / 1.181 GB, free: 7.645 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=20): time 1.793e-06/0.3161, allocations: 4 kB / 1.181 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23): time 0.002101/0.3182, allocations: 1.123 MB / 1.182 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.279e-05/0.3182, allocations: 51.41 kB / 1.182 GB, free: 6.359 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002752/0.3185, allocations: 304.4 kB / 1.182 GB, free: 6.055 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.628e-05/0.3185, allocations: 33.7 kB / 1.183 GB, free: 6.016 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.3187, allocations: 227.6 kB / 1.183 GB, free: 5.789 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.742e-05/0.3187, allocations: 86.75 kB / 1.183 GB, free: 5.703 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.519e-05/0.3188, allocations: 62.03 kB / 1.183 GB, free: 5.633 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.319, allocations: 338.8 kB / 1.183 GB, free: 5.293 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/0.3191, allocations: 108.6 kB / 1.183 GB, free: 5.188 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000201/0.3193, allocations: 187.8 kB / 1.183 GB, free: 4.965 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003759/0.3197, allocations: 312.9 kB / 1.184 GB, free: 4.625 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3197, allocations: 4 kB / 1.184 GB, free: 4.621 MB / 0.9356 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007143/0.3204, allocations: 449.7 kB / 1.184 GB, free: 4.168 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.3205, allocations: 8 kB / 1.184 GB, free: 4.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.3205, allocations: 0 / 1.184 GB, free: 4.16 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003512/0.3208, allocations: 98.78 kB / 1.184 GB, free: 4.055 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002709/0.3211, allocations: 63.91 kB / 1.184 GB, free: 3.992 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003177/0.3243, allocations: 4.391 MB / 1.189 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002512/0.3246, allocations: 15.98 kB / 1.189 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.775e-05/0.3246, allocations: 12 kB / 1.189 GB, free: 15.15 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002041/0.3248, allocations: 177.9 kB / 1.189 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.042e-05/0.3249, allocations: 35.56 kB / 1.189 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.532e-05/0.325, allocations: 42.31 kB / 1.189 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.325, allocations: 4 kB / 1.189 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/0.325, allocations: 4 kB / 1.189 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.325, allocations: 0 / 1.189 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004649/0.3255, allocations: 397.4 kB / 1.189 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.3255, allocations: 7.938 kB / 1.189 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002041/0.3257, allocations: 39.91 kB / 1.189 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003153/0.326, allocations: 86.5 kB / 1.189 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.224e-05/0.3261, allocations: 4 kB / 1.189 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003099/0.3292, allocations: 4.396 MB / 1.194 GB, free: 9.48 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.3292, allocations: 7.938 kB / 1.194 GB, free: 9.473 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008296/0.33, allocations: 0.5471 MB / 1.194 GB, free: 8.902 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001764/0.3302, allocations: 128.7 kB / 1.194 GB, free: 8.758 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.487e-05/0.3303, allocations: 8.125 kB / 1.194 GB, free: 8.75 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000247/0.3305, allocations: 15.92 kB / 1.194 GB, free: 8.734 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.547e-05/0.3306, allocations: 15.98 kB / 1.194 GB, free: 8.719 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.57e-05/0.3306, allocations: 4 kB / 1.194 GB, free: 8.715 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0002414/0.3309, allocations: 219 kB / 1.195 GB, free: 8.504 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.665e-06/0.3309, allocations: 3.938 kB / 1.195 GB, free: 8.5 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0005204/0.3314, allocations: 99.94 kB / 1.195 GB, free: 8.402 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001087/0.3325, allocations: 1.097 MB / 1.196 GB, free: 7.27 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0009224/0.3334, allocations: 0.608 MB / 1.196 GB, free: 6.625 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3335, allocations: 0.75 kB / 1.196 GB, free: 6.625 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0005122/0.334, allocations: 476 kB / 1.197 GB, free: 6.121 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005055/0.3345, allocations: 75.98 kB / 1.197 GB, free: 6.055 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004366/0.3389, allocations: 3.374 MB / 1.2 GB, free: 2.508 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000393/0.3393, allocations: 0.8311 MB / 1.201 GB, free: 1.652 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.000203/0.3395, allocations: 58.94 kB / 1.201 GB, free: 1.598 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001509/0.3397, allocations: 107.4 kB / 1.201 GB, free: 1.492 MB / 0.9512 GB Notification: Performance of SimCode: time 4.11e-07/0.3397, allocations: 7.938 kB / 1.201 GB, free: 1.484 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03105/0.3707, allocations: 7.774 MB / 1.209 GB, free: 9.859 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.561/9.932, allocations: 10.89 kB / 1.209 GB, free: 9.852 MB / 0.9669 GB (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches