Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001347/0.001347, allocations: 114.3 kB / 18.94 MB, free: 2.793 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.001801/0.001801, allocations: 219.9 kB / 22.26 MB, free: 5.211 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.466/1.466, allocations: 230.6 MB / 256 MB, free: 7.996 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.227/3.227, allocations: 0.49 GB / 0.7951 GB, free: 33.2 MB / 0.6231 GB " [Timeout remaining time 176] 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.Resistance,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Lines_Examples_Resistance",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.003487/0.003487, allocations: 65.31 kB / 1.154 GB, free: 25.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3628/0.3663, allocations: 176.1 MB / 1.326 GB, free: 1.973 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.006328/0.3726, allocations: 3.192 MB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002621/0.3753, allocations: 1.406 MB / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002231/0.3755, allocations: 7.938 kB / 1.33 GB, free: 13.35 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001235/0.3767, allocations: 366.6 kB / 1.331 GB, free: 12.99 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000458/0.3772, allocations: 143.3 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004145/0.3776, allocations: 143.6 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004725/0.3781, allocations: 295.1 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004372/0.3785, allocations: 193 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00023/0.3787, allocations: 135.5 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003788/0.3791, allocations: 147.4 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.649e-05/0.3792, allocations: 20 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003795/0.3795, allocations: 167.6 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.3797, allocations: 79.8 kB / 1.332 GB, free: 11.69 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001511/0.3798, allocations: 115.5 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005985/0.3804, allocations: 334.8 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3804, allocations: 4 kB / 1.332 GB, free: 11.24 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.744e-06/0.3804, allocations: 0 / 1.332 GB, free: 11.24 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.65e-05/0.3804, allocations: 4 kB / 1.332 GB, free: 11.24 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001026/0.3815, allocations: 457.4 kB / 1.333 GB, free: 10.76 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.3815, allocations: 8.031 kB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.498e-05/0.3816, allocations: 54.73 kB / 1.333 GB, free: 10.69 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000634/0.3822, allocations: 76.72 kB / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003944/0.3826, allocations: 195.7 kB / 1.333 GB, free: 10.4 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.341e-05/0.3826, allocations: 16.75 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.464e-05/0.3827, allocations: 20.38 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005045/0.3832, allocations: 291.4 kB / 1.334 GB, free: 10.05 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.3832, allocations: 11.94 kB / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.319e-05/0.3832, allocations: 4 kB / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.876e-05/0.3833, allocations: 24.36 kB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003453/0.3836, allocations: 189 kB / 1.334 GB, free: 9.832 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001831/0.3855, allocations: 1.425 MB / 1.335 GB, free: 8.25 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002732/0.3857, allocations: 94.61 kB / 1.335 GB, free: 8.148 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.935e-05/0.3858, allocations: 32.84 kB / 1.335 GB, free: 8.113 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.77e-05/0.3858, allocations: 7.938 kB / 1.335 GB, free: 8.105 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/0.3858, allocations: 30.56 kB / 1.335 GB, free: 8.066 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.914e-06/0.3858, allocations: 0 / 1.335 GB, free: 8.066 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0005158/0.3864, allocations: 142.4 kB / 1.335 GB, free: 7.918 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.039e-05/0.3864, allocations: 59.41 kB / 1.335 GB, free: 7.848 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002356/0.3866, allocations: 194.4 kB / 1.336 GB, free: 7.648 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.709e-05/0.3867, allocations: 29.7 kB / 1.336 GB, free: 7.613 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.3868, allocations: 168 kB / 1.336 GB, free: 7.445 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.89e-05/0.3868, allocations: 35.7 kB / 1.336 GB, free: 7.41 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.702e-05/0.3869, allocations: 33.67 kB / 1.336 GB, free: 7.371 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000175/0.3871, allocations: 334.8 kB / 1.336 GB, free: 7.035 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001035/0.3872, allocations: 39.89 kB / 1.336 GB, free: 6.996 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001181/0.3873, allocations: 98.12 kB / 1.336 GB, free: 6.871 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002058/0.3875, allocations: 140.5 kB / 1.336 GB, free: 6.703 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.3875, allocations: 4 kB / 1.336 GB, free: 6.699 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003621/0.3879, allocations: 190.2 kB / 1.337 GB, free: 6.504 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.3879, allocations: 4 kB / 1.337 GB, free: 6.5 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.3879, allocations: 11.97 kB / 1.337 GB, free: 6.488 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001831/0.3881, allocations: 28.83 kB / 1.337 GB, free: 6.457 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.3882, allocations: 24 kB / 1.337 GB, free: 6.434 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001314/0.3895, allocations: 1.323 MB / 1.338 GB, free: 4.992 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001431/0.3897, allocations: 19.88 kB / 1.338 GB, free: 4.973 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.3897, allocations: 4 kB / 1.338 GB, free: 4.969 MB / 1.029 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.0001573/0.3898, allocations: 149.7 kB / 1.338 GB, free: 4.812 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.752e-05/0.3899, allocations: 15.91 kB / 1.338 GB, free: 4.797 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.754e-05/0.3899, allocations: 21.39 kB / 1.338 GB, free: 4.777 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.3899, allocations: 0 / 1.338 GB, free: 4.777 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.3899, allocations: 0 / 1.338 GB, free: 4.777 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.3899, allocations: 4.062 kB / 1.338 GB, free: 4.773 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005978/0.3905, allocations: 422.3 kB / 1.339 GB, free: 4.309 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.3905, allocations: 4 kB / 1.339 GB, free: 4.305 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.338e-05/0.3906, allocations: 11.98 kB / 1.339 GB, free: 4.293 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.519e-05/0.3907, allocations: 20.84 kB / 1.339 GB, free: 4.27 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.3907, allocations: 96 / 1.339 GB, free: 4.27 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001106/0.3918, allocations: 1.319 MB / 1.34 GB, free: 2.836 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.3918, allocations: 4.156 kB / 1.34 GB, free: 2.832 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002438/0.392, allocations: 212.2 kB / 1.34 GB, free: 2.605 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.661e-05/0.3921, allocations: 19.89 kB / 1.34 GB, free: 2.586 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.255e-05/0.3921, allocations: 4 kB / 1.34 GB, free: 2.582 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.3922, allocations: 7.984 kB / 1.34 GB, free: 2.574 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.556e-05/0.3922, allocations: 0 / 1.34 GB, free: 2.574 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.314e-06/0.3922, allocations: 7.938 kB / 1.34 GB, free: 2.566 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001368/0.3924, allocations: 151 kB / 1.34 GB, free: 2.418 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3924, allocations: 0 / 1.34 GB, free: 2.418 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003387/0.3927, allocations: 55.89 kB / 1.34 GB, free: 2.363 MB / 1.029 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.0005545/0.3933, allocations: 0.7483 MB / 1.341 GB, free: 1.582 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003833/0.3936, allocations: 210.5 kB / 1.341 GB, free: 1.363 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.3937, allocations: 0 / 1.341 GB, free: 1.363 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000169/0.3938, allocations: 146.6 kB / 1.341 GB, free: 1.207 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003707/0.3942, allocations: 48.69 kB / 1.342 GB, free: 1.164 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002452/0.3966, allocations: 2.039 MB / 1.344 GB, free: 14.99 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004045/0.397, allocations: 0.7437 MB / 1.344 GB, free: 14.22 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 9.653e-05/0.3971, allocations: 25.47 kB / 1.344 GB, free: 14.2 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.587e-05/0.3972, allocations: 55.42 kB / 1.344 GB, free: 14.14 MB / 1.045 GB Notification: Performance of SimCode: time 3e-07/0.3972, allocations: 192 / 1.344 GB, free: 14.14 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03614/0.4334, allocations: 3.88 MB / 1.348 GB, free: 10.4 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.35, allocations: 15.58 kB / 1.348 GB, free: 10.4 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.069878408918157]