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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001697/0.001697, allocations: 113.5 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002188/0.002188, allocations: 218.7 kB / 23.04 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.49/1.49, allocations: 230.6 MB / 256.8 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.307/3.307, allocations: 0.5003 GB / 0.8061 GB, free: 26.81 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002121/0.002121, allocations: 71.72 kB / 1.171 GB, free: 19.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3984/0.4005, allocations: 179 MB / 1.345 GB, free: 472 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005223/0.4057, allocations: 3.197 MB / 1.348 GB, free: 13.25 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002341/0.4081, allocations: 1.414 MB / 1.35 GB, free: 11.82 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00012/0.4082, allocations: 7.938 kB / 1.35 GB, free: 11.82 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001065/0.4092, allocations: 353.1 kB / 1.35 GB, free: 11.47 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0003585/0.4096, allocations: 151.2 kB / 1.35 GB, free: 11.32 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003394/0.4099, allocations: 135.6 kB / 1.35 GB, free: 11.19 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003738/0.4103, allocations: 310.7 kB / 1.351 GB, free: 10.89 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003707/0.4107, allocations: 192.5 kB / 1.351 GB, free: 10.7 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001603/0.4108, allocations: 127.6 kB / 1.351 GB, free: 10.57 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003063/0.4111, allocations: 147.4 kB / 1.351 GB, free: 10.43 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.297e-05/0.4112, allocations: 16 kB / 1.351 GB, free: 10.41 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002874/0.4115, allocations: 175.6 kB / 1.351 GB, free: 10.24 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 9.117e-05/0.4116, allocations: 75.8 kB / 1.351 GB, free: 10.16 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001288/0.4117, allocations: 115.5 kB / 1.352 GB, free: 10.05 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004335/0.4121, allocations: 330.8 kB / 1.352 GB, free: 9.727 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.4121, allocations: 0 / 1.352 GB, free: 9.727 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.092e-06/0.4121, allocations: 4 kB / 1.352 GB, free: 9.723 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.4121, allocations: 0 / 1.352 GB, free: 9.723 MB / 1.045 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.0008067/0.4129, allocations: 461.4 kB / 1.352 GB, free: 9.238 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.413, allocations: 11.97 kB / 1.352 GB, free: 9.227 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.94e-05/0.413, allocations: 4.562 kB / 1.352 GB, free: 9.223 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.441e-05/0.4131, allocations: 58.72 kB / 1.352 GB, free: 9.156 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005967/0.4137, allocations: 84.72 kB / 1.352 GB, free: 9.074 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002969/0.414, allocations: 190.1 kB / 1.353 GB, free: 8.863 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.414, allocations: 8.75 kB / 1.353 GB, free: 8.855 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.062e-05/0.414, allocations: 16.38 kB / 1.353 GB, free: 8.84 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004681/0.4145, allocations: 310.7 kB / 1.353 GB, free: 8.512 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.4145, allocations: 3.938 kB / 1.353 GB, free: 8.508 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.528e-05/0.4145, allocations: 8 kB / 1.353 GB, free: 8.5 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.073e-05/0.4145, allocations: 16.36 kB / 1.353 GB, free: 8.484 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003306/0.4149, allocations: 197 kB / 1.353 GB, free: 8.289 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001598/0.4165, allocations: 1.421 MB / 1.355 GB, free: 6.715 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002496/0.4167, allocations: 102.6 kB / 1.355 GB, free: 6.605 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.259e-05/0.4168, allocations: 32.84 kB / 1.355 GB, free: 6.57 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 9.598e-06/0.4168, allocations: 3.938 kB / 1.355 GB, free: 6.566 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/0.4168, allocations: 34.56 kB / 1.355 GB, free: 6.523 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.452e-06/0.4168, allocations: 0 / 1.355 GB, free: 6.523 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0005258/0.4174, allocations: 146.4 kB / 1.355 GB, free: 6.371 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.546e-05/0.4174, allocations: 55.41 kB / 1.355 GB, free: 6.305 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002317/0.4177, allocations: 195.6 kB / 1.355 GB, free: 6.105 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.093e-05/0.4177, allocations: 29.64 kB / 1.355 GB, free: 6.07 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.000135/0.4178, allocations: 171.9 kB / 1.355 GB, free: 5.898 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.565e-05/0.4178, allocations: 27.95 kB / 1.355 GB, free: 5.871 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.864e-05/0.4179, allocations: 29.72 kB / 1.355 GB, free: 5.836 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001849/0.4181, allocations: 334.8 kB / 1.356 GB, free: 5.5 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.172e-05/0.4182, allocations: 35.92 kB / 1.356 GB, free: 5.465 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001288/0.4183, allocations: 96.56 kB / 1.356 GB, free: 5.34 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002182/0.4185, allocations: 148.4 kB / 1.356 GB, free: 5.164 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4185, allocations: 4 kB / 1.356 GB, free: 5.16 MB / 1.045 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000334/0.4189, allocations: 194.1 kB / 1.356 GB, free: 4.961 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.4189, allocations: 5.25 kB / 1.356 GB, free: 4.957 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.4189, allocations: 4 kB / 1.356 GB, free: 4.953 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001876/0.4191, allocations: 33.06 kB / 1.356 GB, free: 4.918 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.4192, allocations: 27.92 kB / 1.356 GB, free: 4.891 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001309/0.4205, allocations: 1.318 MB / 1.357 GB, free: 3.449 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001233/0.4206, allocations: 15.89 kB / 1.357 GB, free: 3.434 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.517e-05/0.4206, allocations: 8 kB / 1.357 GB, free: 3.426 MB / 1.045 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.0001846/0.4208, allocations: 153.7 kB / 1.358 GB, free: 3.266 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.208e-05/0.4209, allocations: 15.91 kB / 1.358 GB, free: 3.25 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.778e-05/0.4209, allocations: 17.5 kB / 1.358 GB, free: 3.238 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.4209, allocations: 0 / 1.358 GB, free: 3.238 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.4209, allocations: 0 / 1.358 GB, free: 3.238 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.4209, allocations: 0 / 1.358 GB, free: 3.238 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005951/0.4215, allocations: 422.2 kB / 1.358 GB, free: 2.773 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.4215, allocations: 0 / 1.358 GB, free: 2.773 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.815e-05/0.4215, allocations: 8 kB / 1.358 GB, free: 2.766 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.768e-05/0.4216, allocations: 20.84 kB / 1.358 GB, free: 2.742 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.4216, allocations: 12.06 kB / 1.358 GB, free: 2.73 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001152/0.4228, allocations: 1.32 MB / 1.359 GB, free: 1.301 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4228, allocations: 400 / 1.359 GB, free: 1.301 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002741/0.423, allocations: 220.2 kB / 1.36 GB, free: 1.066 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.029e-05/0.4231, allocations: 15.94 kB / 1.36 GB, free: 1.051 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.4231, allocations: 4 kB / 1.36 GB, free: 1.047 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.4232, allocations: 8.062 kB / 1.36 GB, free: 1.039 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.023e-05/0.4232, allocations: 7.984 kB / 1.36 GB, free: 1.031 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.4233, allocations: 0 / 1.36 GB, free: 1.031 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001509/0.4234, allocations: 151 kB / 1.36 GB, free: 0.8828 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.4234, allocations: 0 / 1.36 GB, free: 0.8828 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.000344/0.4237, allocations: 63.72 kB / 1.36 GB, free: 0.8203 MB / 1.045 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.0006624/0.4244, allocations: 0.7367 MB / 1.361 GB, free: 52 kB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005053/0.4249, allocations: 210.5 kB / 1.361 GB, free: 15.83 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4249, allocations: 4.281 kB / 1.361 GB, free: 15.83 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001735/0.4251, allocations: 139.2 kB / 1.361 GB, free: 15.68 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000399/0.4255, allocations: 40.69 kB / 1.361 GB, free: 15.64 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002588/0.4281, allocations: 2.055 MB / 1.363 GB, free: 13.45 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.4285, allocations: 0.7476 MB / 1.364 GB, free: 12.67 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001131/0.4286, allocations: 29.47 kB / 1.364 GB, free: 12.64 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.203e-05/0.4287, allocations: 47.42 kB / 1.364 GB, free: 12.6 MB / 1.061 GB Notification: Performance of SimCode: time 7.91e-07/0.4287, allocations: 0 / 1.364 GB, free: 12.6 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02706/0.4557, allocations: 3.915 MB / 1.368 GB, free: 8.848 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.34, allocations: 6.375 kB / 1.368 GB, free: 8.848 MB / 1.061 GB " [Timeout remaining time 287] (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 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.445276399026625]