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.001388/0.001388, allocations: 104 kB / 16.45 MB, free: 6.449 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.001558/0.001558, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.45/1.45, allocations: 230.6 MB / 252.8 MB, free: 9.109 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.222/3.222, allocations: 0.49 GB / 0.7916 GB, free: 33.51 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.001989/0.001989, allocations: 63.09 kB / 1.149 GB, free: 26.57 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3735/0.3755, allocations: 176.1 MB / 1.321 GB, free: 3.484 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.006081/0.3816, allocations: 3.133 MB / 1.324 GB, free: 344 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002442/0.3841, allocations: 1.379 MB / 1.325 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001924/0.3842, allocations: 7.938 kB / 1.325 GB, free: 14.94 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001113/0.3854, allocations: 355.1 kB / 1.326 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0004257/0.3858, allocations: 147.3 kB / 1.326 GB, free: 14.45 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003938/0.3862, allocations: 145.1 kB / 1.326 GB, free: 14.31 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000445/0.3866, allocations: 302.9 kB / 1.326 GB, free: 14.01 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004397/0.3871, allocations: 192.5 kB / 1.326 GB, free: 13.82 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002165/0.3873, allocations: 123.5 kB / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003599/0.3876, allocations: 143.5 kB / 1.327 GB, free: 13.56 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.064e-05/0.3877, allocations: 16 kB / 1.327 GB, free: 13.54 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003317/0.388, allocations: 179.6 kB / 1.327 GB, free: 13.37 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.3881, allocations: 79.73 kB / 1.327 GB, free: 13.29 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000141/0.3883, allocations: 115.5 kB / 1.327 GB, free: 13.18 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005204/0.3888, allocations: 338.8 kB / 1.327 GB, free: 12.84 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3888, allocations: 0 / 1.327 GB, free: 12.84 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.112e-06/0.3888, allocations: 0 / 1.327 GB, free: 12.84 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.576e-05/0.3888, allocations: 0 / 1.327 GB, free: 12.84 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.000911/0.3897, allocations: 0.5142 MB / 1.328 GB, free: 12.28 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.3898, allocations: 15.98 kB / 1.328 GB, free: 12.26 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.029e-05/0.3898, allocations: 58.72 kB / 1.328 GB, free: 12.2 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000595/0.3904, allocations: 84.66 kB / 1.328 GB, free: 12.11 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003445/0.3908, allocations: 244 kB / 1.328 GB, free: 11.84 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.3908, allocations: 12.75 kB / 1.328 GB, free: 11.82 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.655e-05/0.3908, allocations: 16.38 kB / 1.328 GB, free: 11.81 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005087/0.3913, allocations: 307.3 kB / 1.328 GB, free: 11.48 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.3913, allocations: 0 / 1.328 GB, free: 11.48 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.999e-05/0.3914, allocations: 11.98 kB / 1.328 GB, free: 11.47 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-05/0.3914, allocations: 16.38 kB / 1.328 GB, free: 11.45 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003491/0.3918, allocations: 196.9 kB / 1.329 GB, free: 11.26 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001794/0.3936, allocations: 1.456 MB / 1.33 GB, free: 9.645 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000321/0.3939, allocations: 175.6 kB / 1.33 GB, free: 9.445 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.015e-05/0.394, allocations: 32.84 kB / 1.33 GB, free: 9.41 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.225e-05/0.394, allocations: 0 / 1.33 GB, free: 9.41 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/0.394, allocations: 38.5 kB / 1.33 GB, free: 9.363 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 9.51e-07/0.394, allocations: 0 / 1.33 GB, free: 9.363 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.000561/0.3946, allocations: 235.8 kB / 1.331 GB, free: 9.105 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.727e-05/0.3946, allocations: 55.41 kB / 1.331 GB, free: 9.039 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002472/0.3949, allocations: 191 kB / 1.331 GB, free: 8.844 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.259e-05/0.3949, allocations: 25.7 kB / 1.331 GB, free: 8.812 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.395, allocations: 171.9 kB / 1.331 GB, free: 8.641 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.456e-05/0.3951, allocations: 23.78 kB / 1.331 GB, free: 8.617 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.036e-05/0.3951, allocations: 37.67 kB / 1.331 GB, free: 8.574 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001627/0.3953, allocations: 330.8 kB / 1.331 GB, free: 8.242 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.515e-05/0.3954, allocations: 39.97 kB / 1.331 GB, free: 8.203 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.3955, allocations: 92.58 kB / 1.331 GB, free: 8.082 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002109/0.3957, allocations: 152.4 kB / 1.332 GB, free: 7.902 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.3957, allocations: 0 / 1.332 GB, free: 7.902 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000364/0.3961, allocations: 190.2 kB / 1.332 GB, free: 7.707 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.3961, allocations: 4 kB / 1.332 GB, free: 7.703 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.3961, allocations: 4 kB / 1.332 GB, free: 7.699 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001969/0.3963, allocations: 29.12 kB / 1.332 GB, free: 7.668 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.3964, allocations: 27.98 kB / 1.332 GB, free: 7.641 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001309/0.3977, allocations: 1.427 MB / 1.333 GB, free: 6.074 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001482/0.3979, allocations: 15.89 kB / 1.333 GB, free: 6.059 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.3979, allocations: 8 kB / 1.333 GB, free: 6.051 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.0001509/0.398, allocations: 145.8 kB / 1.333 GB, free: 5.898 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.383e-05/0.3981, allocations: 24 kB / 1.333 GB, free: 5.875 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.198e-05/0.3981, allocations: 13.41 kB / 1.333 GB, free: 5.863 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.3981, allocations: 96 / 1.333 GB, free: 5.863 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.3981, allocations: 3.938 kB / 1.333 GB, free: 5.859 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3981, allocations: 3.984 kB / 1.333 GB, free: 5.855 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005653/0.3987, allocations: 447.2 kB / 1.334 GB, free: 5.359 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.3987, allocations: 0 / 1.334 GB, free: 5.359 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.994e-05/0.3987, allocations: 7.984 kB / 1.334 GB, free: 5.352 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.26e-05/0.3988, allocations: 32.78 kB / 1.334 GB, free: 5.316 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.3988, allocations: 3.938 kB / 1.334 GB, free: 5.312 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001189/0.4, allocations: 1.418 MB / 1.335 GB, free: 3.75 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.4, allocations: 0 / 1.335 GB, free: 3.75 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002889/0.4003, allocations: 208.2 kB / 1.336 GB, free: 3.527 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.4004, allocations: 101 kB / 1.336 GB, free: 3.41 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.4004, allocations: 0 / 1.336 GB, free: 3.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.4005, allocations: 16.08 kB / 1.336 GB, free: 3.395 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.57e-05/0.4006, allocations: 4 kB / 1.336 GB, free: 3.391 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.4006, allocations: 4 kB / 1.336 GB, free: 3.387 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001587/0.4007, allocations: 147 kB / 1.336 GB, free: 3.242 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4007, allocations: 0 / 1.336 GB, free: 3.242 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003557/0.4011, allocations: 51.89 kB / 1.336 GB, free: 3.191 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.0005924/0.4017, allocations: 0.7483 MB / 1.337 GB, free: 2.41 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000423/0.4021, allocations: 210.5 kB / 1.337 GB, free: 2.191 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.4021, allocations: 0.5625 kB / 1.337 GB, free: 2.191 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001718/0.4023, allocations: 146.7 kB / 1.337 GB, free: 2.035 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003743/0.4027, allocations: 39.41 kB / 1.337 GB, free: 2 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002603/0.4053, allocations: 2.049 MB / 1.339 GB, free: 15.81 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004095/0.4057, allocations: 0.7514 MB / 1.34 GB, free: 15.04 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001007/0.4058, allocations: 29.52 kB / 1.34 GB, free: 15.01 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.641e-05/0.4059, allocations: 51.42 kB / 1.34 GB, free: 14.96 MB / 1.045 GB Notification: Performance of SimCode: time 8.51e-07/0.4059, allocations: 0 / 1.34 GB, free: 14.96 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02973/0.4356, allocations: 3.757 MB / 1.343 GB, free: 11.34 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.589/10.02, allocations: 6.172 kB / 1.343 GB, free: 11.33 MB / 1.045 GB " [Timeout remaining time 290] (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: 16.68252388900146]