Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.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.001321/0.001321, allocations: 108.2 kB / 16.45 MB, free: 6.5 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.001474/0.001474, allocations: 210.4 kB / 19.43 MB, free: 3.656 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.434/1.434, allocations: 230.6 MB / 252.8 MB, free: 8.961 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.12/3.12, allocations: 0.49 GB / 0.7916 GB, free: 33.43 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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.RCModel,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",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.002051/0.002051, allocations: 66.61 kB / 1.149 GB, free: 26.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.3499, allocations: 176.1 MB / 1.321 GB, free: 3.387 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.007411/0.3573, allocations: 4.432 MB / 1.325 GB, free: 14.94 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.0037/0.361, allocations: 1.932 MB / 1.327 GB, free: 13 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004224/0.3615, allocations: 11.94 kB / 1.327 GB, free: 12.98 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.00189/0.3634, allocations: 0.5997 MB / 1.328 GB, free: 12.38 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0008732/0.3642, allocations: 266.6 kB / 1.328 GB, free: 12.12 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000861/0.3651, allocations: 253 kB / 1.328 GB, free: 11.88 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.001258/0.3663, allocations: 0.615 MB / 1.329 GB, free: 11.26 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009327/0.3673, allocations: 363.2 kB / 1.329 GB, free: 10.9 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006538/0.3679, allocations: 255.1 kB / 1.329 GB, free: 10.65 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008625/0.3688, allocations: 282.9 kB / 1.33 GB, free: 10.38 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001385/0.3689, allocations: 40 kB / 1.33 GB, free: 10.34 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007803/0.3697, allocations: 263.5 kB / 1.33 GB, free: 10.08 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0002847/0.37, allocations: 159.4 kB / 1.33 GB, free: 9.922 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0004213/0.3704, allocations: 222.9 kB / 1.33 GB, free: 9.703 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.001393/0.3718, allocations: 0.611 MB / 1.331 GB, free: 9.09 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.3718, allocations: 0 / 1.331 GB, free: 9.09 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.893e-06/0.3718, allocations: 0 / 1.331 GB, free: 9.09 MB / 1.029 GB Notification: Performance of Transformations before backend: time 2.832e-05/0.3718, allocations: 0 / 1.331 GB, free: 9.09 MB / 1.029 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.001925/0.3738, allocations: 0.7323 MB / 1.332 GB, free: 8.305 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 6.356e-05/0.3738, allocations: 15.98 kB / 1.332 GB, free: 8.289 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001437/0.374, allocations: 78.7 kB / 1.332 GB, free: 8.203 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00115/0.3751, allocations: 152.5 kB / 1.332 GB, free: 8.055 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007141/0.3758, allocations: 342.6 kB / 1.332 GB, free: 7.68 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.142e-05/0.3759, allocations: 29.36 kB / 1.332 GB, free: 7.652 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.376, allocations: 32.38 kB / 1.332 GB, free: 7.621 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009476/0.3769, allocations: 0.5355 MB / 1.333 GB, free: 7.047 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.3769, allocations: 0 / 1.333 GB, free: 7.047 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.498e-05/0.377, allocations: 16 kB / 1.333 GB, free: 7.031 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.843e-05/0.3771, allocations: 28.64 kB / 1.333 GB, free: 7.004 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007068/0.3778, allocations: 390.3 kB / 1.333 GB, free: 6.625 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003476/0.3812, allocations: 2.4 MB / 1.335 GB, free: 4 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006029/0.3818, allocations: 234.5 kB / 1.336 GB, free: 3.762 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.382, allocations: 100.8 kB / 1.336 GB, free: 3.66 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.3821, allocations: 7.984 kB / 1.336 GB, free: 3.652 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.891e-05/0.3821, allocations: 38.56 kB / 1.336 GB, free: 3.605 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.693e-06/0.3821, allocations: 0 / 1.336 GB, free: 3.605 MB / 1.029 GB Notification: Performance of matching and sorting (n=23): time 0.002626/0.3847, allocations: 1.123 MB / 1.337 GB, free: 2.387 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/0.3848, allocations: 59.41 kB / 1.337 GB, free: 2.316 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003693/0.3852, allocations: 304.5 kB / 1.337 GB, free: 2.008 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.063e-05/0.3852, allocations: 33.64 kB / 1.337 GB, free: 1.969 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.3854, allocations: 236.1 kB / 1.337 GB, free: 1.734 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 8.577e-05/0.3855, allocations: 83.28 kB / 1.338 GB, free: 1.652 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001207/0.3856, allocations: 65.97 kB / 1.338 GB, free: 1.578 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000172/0.3858, allocations: 342.8 kB / 1.338 GB, free: 1.234 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001867/0.3859, allocations: 100.6 kB / 1.338 GB, free: 1.137 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002479/0.3862, allocations: 191.7 kB / 1.338 GB, free: 0.9102 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004521/0.3866, allocations: 324.1 kB / 1.339 GB, free: 0.5586 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3867, allocations: 0 / 1.339 GB, free: 0.5586 MB / 1.029 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008783/0.3875, allocations: 442 kB / 1.339 GB, free: 116 kB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.3876, allocations: 8 kB / 1.339 GB, free: 108 kB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.3876, allocations: 0 / 1.339 GB, free: 108 kB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004427/0.388, allocations: 102.7 kB / 1.339 GB, free: 15.99 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002859/0.3883, allocations: 63.86 kB / 1.339 GB, free: 15.93 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004242/0.3925, allocations: 4.395 MB / 1.343 GB, free: 11.11 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002428/0.3928, allocations: 8 kB / 1.343 GB, free: 11.11 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.355e-05/0.3928, allocations: 19.98 kB / 1.343 GB, free: 11.09 MB / 1.045 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.0002431/0.3931, allocations: 177.7 kB / 1.344 GB, free: 10.9 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.63e-05/0.3931, allocations: 35.81 kB / 1.344 GB, free: 10.87 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.787e-05/0.3932, allocations: 42.45 kB / 1.344 GB, free: 10.83 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.463e-06/0.3932, allocations: 7.984 kB / 1.344 GB, free: 10.82 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.3932, allocations: 3.984 kB / 1.344 GB, free: 10.82 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.3932, allocations: 0 / 1.344 GB, free: 10.82 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000553/0.3938, allocations: 401.4 kB / 1.344 GB, free: 10.38 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.3938, allocations: 3.938 kB / 1.344 GB, free: 10.37 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001965/0.394, allocations: 35.98 kB / 1.344 GB, free: 10.34 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000325/0.3943, allocations: 98.44 kB / 1.344 GB, free: 10.23 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.3943, allocations: 0 / 1.344 GB, free: 10.23 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003801/0.3981, allocations: 4.383 MB / 1.348 GB, free: 5.426 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.3981, allocations: 3.938 kB / 1.349 GB, free: 5.422 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009006/0.399, allocations: 0.5621 MB / 1.349 GB, free: 4.836 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001534/0.3992, allocations: 120.9 kB / 1.349 GB, free: 4.699 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.779e-05/0.3993, allocations: 7.984 kB / 1.349 GB, free: 4.691 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002148/0.3995, allocations: 15.94 kB / 1.349 GB, free: 4.676 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.331e-05/0.3995, allocations: 23.89 kB / 1.349 GB, free: 4.652 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.81e-05/0.3996, allocations: 12 kB / 1.349 GB, free: 4.641 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002523/0.3998, allocations: 211 kB / 1.349 GB, free: 4.434 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.3998, allocations: 0 / 1.349 GB, free: 4.434 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004975/0.4003, allocations: 92 kB / 1.35 GB, free: 4.344 MB / 1.045 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.001234/0.4015, allocations: 1.103 MB / 1.351 GB, free: 3.207 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0009808/0.4025, allocations: 0.592 MB / 1.351 GB, free: 2.578 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.4025, allocations: 0 / 1.351 GB, free: 2.578 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0005722/0.4031, allocations: 467.7 kB / 1.352 GB, free: 2.082 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005202/0.4036, allocations: 82.39 kB / 1.352 GB, free: 2.008 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00484/0.4085, allocations: 3.37 MB / 1.355 GB, free: 14.46 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005574/0.409, allocations: 0.835 MB / 1.356 GB, free: 13.6 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.000215/0.4092, allocations: 58.92 kB / 1.356 GB, free: 13.55 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001761/0.4094, allocations: 111.4 kB / 1.356 GB, free: 13.44 MB / 1.061 GB Notification: Performance of SimCode: time 8.61e-07/0.4094, allocations: 0 / 1.356 GB, free: 13.44 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04164/0.451, allocations: 7.832 MB / 1.364 GB, free: 5.762 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.933/10.38, allocations: 9.969 kB / 1.364 GB, free: 5.754 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --stepSize=0.006 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.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: 16.95490257581696]