Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0009224/0.0009224, allocations: 68.47 kB / 19.17 MB, free: 0.7344 MB / 13.93 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.0008702/0.0008702, allocations: 173.9 kB / 22.46 MB, free: 2.09 MB / 18.57 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 0.8801/0.8801, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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 1.787/1.787, allocations: 389 MB / 0.633 GB, free: 12.65 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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.RCModel,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.465e-06/2.465e-06, allocations: 0 / 0.9996 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.601e-05/2.847e-05, allocations: 2.281 kB / 0.9996 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.004999/0.005028, allocations: 4.213 MB / 1.004 GB, free: 9.289 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.002169/0.007196, allocations: 1.831 MB / 1.006 GB, free: 7.449 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001692/0.007366, allocations: 11.94 kB / 1.006 GB, free: 7.438 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0008793/0.008245, allocations: 0.5952 MB / 1.006 GB, free: 6.84 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0004223/0.008667, allocations: 274.2 kB / 1.006 GB, free: 6.57 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004126/0.00908, allocations: 258.1 kB / 1.007 GB, free: 6.32 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.000522/0.009602, allocations: 0.6381 MB / 1.007 GB, free: 5.68 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005321/0.01013, allocations: 339.1 kB / 1.008 GB, free: 5.348 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003317/0.01047, allocations: 355.2 kB / 1.008 GB, free: 5 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003734/0.01084, allocations: 239.3 kB / 1.008 GB, free: 4.766 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 4.748e-05/0.01089, allocations: 36 kB / 1.008 GB, free: 4.73 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002965/0.01118, allocations: 227.4 kB / 1.008 GB, free: 4.508 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 0.0001141/0.0113, allocations: 175.5 kB / 1.009 GB, free: 4.336 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.01141, allocations: 151.7 kB / 1.009 GB, free: 4.188 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0004993/0.01191, allocations: 0.623 MB / 1.009 GB, free: 3.562 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.01191, allocations: 8 kB / 1.009 GB, free: 3.555 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.543e-06/0.01192, allocations: 0 / 1.009 GB, free: 3.555 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 8.205e-06/0.01192, allocations: 0 / 1.009 GB, free: 3.555 MB / 0.9636 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.0009/0.01282, allocations: 0.6555 MB / 1.01 GB, free: 2.871 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.01286, allocations: 16.69 kB / 1.01 GB, free: 2.855 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.546e-05/0.01293, allocations: 78.72 kB / 1.01 GB, free: 2.77 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005241/0.01345, allocations: 148.5 kB / 1.01 GB, free: 2.625 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003442/0.0138, allocations: 284.5 kB / 1.01 GB, free: 2.324 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.828e-05/0.01381, allocations: 25.38 kB / 1.011 GB, free: 2.301 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.276e-05/0.01386, allocations: 32.36 kB / 1.011 GB, free: 2.27 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005662/0.01442, allocations: 0.6826 MB / 1.011 GB, free: 1.512 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.01443, allocations: 192 / 1.011 GB, free: 1.512 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.636e-05/0.01446, allocations: 20.12 kB / 1.011 GB, free: 1.492 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.654e-05/0.0145, allocations: 40.58 kB / 1.011 GB, free: 1.453 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000385/0.01488, allocations: 386.3 kB / 1.012 GB, free: 1.078 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001472/0.01635, allocations: 1.73 MB / 1.013 GB, free: 15.27 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003487/0.0167, allocations: 230.5 kB / 1.014 GB, free: 15.03 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.0168, allocations: 100.8 kB / 1.014 GB, free: 14.93 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 1.204e-05/0.01682, allocations: 4 kB / 1.014 GB, free: 14.93 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.039e-05/0.01684, allocations: 34.56 kB / 1.014 GB, free: 14.88 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=20): time 1.162e-06/0.01684, allocations: 0 / 1.014 GB, free: 14.88 MB / 0.9792 GB Notification: Performance of matching and sorting (n=23): time 0.001288/0.01812, allocations: 0.9093 MB / 1.015 GB, free: 13.93 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.755e-05/0.01815, allocations: 55.34 kB / 1.015 GB, free: 13.87 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.01836, allocations: 308.4 kB / 1.015 GB, free: 13.56 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.01838, allocations: 33.7 kB / 1.015 GB, free: 13.52 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 9.927e-05/0.01847, allocations: 236.1 kB / 1.015 GB, free: 13.28 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 4.794e-05/0.01852, allocations: 87.23 kB / 1.015 GB, free: 13.2 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.645e-05/0.01859, allocations: 62.03 kB / 1.015 GB, free: 13.12 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 9.107e-05/0.01868, allocations: 346.7 kB / 1.016 GB, free: 12.78 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.01879, allocations: 96.61 kB / 1.016 GB, free: 12.68 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001609/0.01895, allocations: 191.7 kB / 1.016 GB, free: 12.46 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002694/0.01922, allocations: 319.4 kB / 1.016 GB, free: 12.11 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.01922, allocations: 0 / 1.016 GB, free: 12.11 MB / 0.9792 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004436/0.01966, allocations: 446 kB / 1.017 GB, free: 11.66 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.01968, allocations: 8 kB / 1.017 GB, free: 11.65 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.01968, allocations: 4 kB / 1.017 GB, free: 11.65 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000234/0.01992, allocations: 102.7 kB / 1.017 GB, free: 11.54 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.02007, allocations: 59.91 kB / 1.017 GB, free: 11.48 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001962/0.02203, allocations: 4.07 MB / 1.021 GB, free: 7.062 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/0.02214, allocations: 8 kB / 1.021 GB, free: 7.055 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.403e-05/0.02216, allocations: 19.94 kB / 1.021 GB, free: 7.035 MB / 0.9792 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.0001286/0.02229, allocations: 180 kB / 1.021 GB, free: 6.852 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.507e-05/0.02232, allocations: 31.81 kB / 1.021 GB, free: 6.82 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.401e-05/0.02236, allocations: 42.34 kB / 1.021 GB, free: 6.781 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.02236, allocations: 4 kB / 1.021 GB, free: 6.777 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.02236, allocations: 0 / 1.021 GB, free: 6.777 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.02237, allocations: 3.984 kB / 1.021 GB, free: 6.773 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002631/0.02263, allocations: 336.6 kB / 1.021 GB, free: 6.402 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.02263, allocations: 0 / 1.021 GB, free: 6.402 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.455e-05/0.02273, allocations: 35.92 kB / 1.021 GB, free: 6.367 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001571/0.02288, allocations: 90.5 kB / 1.022 GB, free: 6.27 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/0.0229, allocations: 11.94 kB / 1.022 GB, free: 6.258 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00188/0.02478, allocations: 4.062 MB / 1.025 GB, free: 1.852 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.02478, allocations: 0 / 1.025 GB, free: 1.852 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004928/0.02527, allocations: 0.5622 MB / 1.026 GB, free: 1.266 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 6.741e-05/0.02534, allocations: 47.81 kB / 1.026 GB, free: 1.219 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.972e-05/0.02536, allocations: 4 kB / 1.026 GB, free: 1.215 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.841e-05/0.02546, allocations: 11.98 kB / 1.026 GB, free: 1.203 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.801e-05/0.02549, allocations: 19.97 kB / 1.026 GB, free: 1.184 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/0.0255, allocations: 8 kB / 1.026 GB, free: 1.176 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.0001329/0.02564, allocations: 211.1 kB / 1.026 GB, free: 0.9688 MB / 0.9792 GB Notification: Performance of sort global known variables: time 8e-08/0.02564, allocations: 0 / 1.026 GB, free: 0.9688 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.0002928/0.02593, allocations: 96 kB / 1.026 GB, free: 0.875 MB / 0.9792 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.0006636/0.02659, allocations: 1.095 MB / 1.027 GB, free: 15.75 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.0005204/0.02711, allocations: 0.5977 MB / 1.028 GB, free: 15.11 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.02712, allocations: 3.938 kB / 1.028 GB, free: 15.11 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.0002505/0.02737, allocations: 455.9 kB / 1.028 GB, free: 14.62 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.02768, allocations: 80.84 kB / 1.029 GB, free: 14.54 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002807/0.03049, allocations: 3.358 MB / 1.032 GB, free: 11.02 MB / 0.9948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000157/0.03065, allocations: 228.6 kB / 1.032 GB, free: 10.77 MB / 0.9948 GB Notification: Performance of simCode: alias equations: time 0.0001282/0.03078, allocations: 58.94 kB / 1.032 GB, free: 10.72 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.03088, allocations: 112.5 kB / 1.032 GB, free: 10.61 MB / 0.9948 GB Notification: Performance of SimCode: time 4.01e-07/0.03088, allocations: 0 / 1.032 GB, free: 10.61 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02677/0.05765, allocations: 8.881 MB / 1.041 GB, free: 1.953 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.027/7.084, allocations: 10.73 kB / 1.041 GB, free: 1.945 MB / 0.9948 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --stepSize=0.006 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 11.088252432644367]