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.001701/0.001701, allocations: 119.3 kB / 17.17 MB, free: 5.977 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.001996/0.001996, allocations: 209.5 kB / 20.13 MB, free: 3.035 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.444/1.444, allocations: 230.6 MB / 253.5 MB, free: 15.09 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 2.829/2.829, allocations: 0.49 GB / 0.7923 GB, free: 1.332 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_12_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.001984/0.001984, allocations: 72.17 kB / 1.149 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9149/0.9169, allocations: 176.1 MB / 1.321 GB, free: 24.77 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003764/0.9207, allocations: 3.118 MB / 1.325 GB, free: 22.66 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001676/0.9223, allocations: 1.392 MB / 1.326 GB, free: 21.71 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.9225, allocations: 12.97 kB / 1.326 GB, free: 21.7 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0008656/0.9233, allocations: 355.3 kB / 1.326 GB, free: 21.48 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0002748/0.9236, allocations: 140 kB / 1.326 GB, free: 21.41 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002743/0.9239, allocations: 146.3 kB / 1.326 GB, free: 21.33 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002619/0.9241, allocations: 299.9 kB / 1.327 GB, free: 21.2 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003119/0.9244, allocations: 190 kB / 1.327 GB, free: 21.12 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.9246, allocations: 124 kB / 1.327 GB, free: 21.07 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002735/0.9249, allocations: 144.6 kB / 1.327 GB, free: 21.01 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.242e-05/0.9249, allocations: 18.66 kB / 1.327 GB, free: 21.01 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002922/0.9252, allocations: 172.7 kB / 1.327 GB, free: 20.95 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 8.667e-05/0.9253, allocations: 81.36 kB / 1.327 GB, free: 20.92 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.9254, allocations: 109.4 kB / 1.328 GB, free: 20.86 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004228/0.9258, allocations: 340.1 kB / 1.328 GB, free: 20.74 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.9258, allocations: 8.781 kB / 1.328 GB, free: 20.73 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.473e-06/0.9258, allocations: 0 / 1.328 GB, free: 20.73 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.337e-05/0.9258, allocations: 0 / 1.328 GB, free: 20.73 MB / 1.061 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.0007857/0.9266, allocations: 0.5144 MB / 1.328 GB, free: 20.27 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.9267, allocations: 13.86 kB / 1.328 GB, free: 20.27 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.962e-05/0.9267, allocations: 5.562 kB / 1.328 GB, free: 20.27 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.178e-05/0.9267, allocations: 53.88 kB / 1.328 GB, free: 20.21 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005643/0.9273, allocations: 84.23 kB / 1.329 GB, free: 20.2 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002751/0.9276, allocations: 252.8 kB / 1.329 GB, free: 19.95 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.524e-05/0.9276, allocations: 12.47 kB / 1.329 GB, free: 19.95 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.222e-05/0.9276, allocations: 15.69 kB / 1.329 GB, free: 19.95 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000454/0.9281, allocations: 308.8 kB / 1.329 GB, free: 19.77 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.9281, allocations: 1.25 kB / 1.329 GB, free: 19.77 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.445e-05/0.9281, allocations: 6.125 kB / 1.329 GB, free: 19.77 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.023e-05/0.9282, allocations: 20.41 kB / 1.329 GB, free: 19.77 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000319/0.9285, allocations: 191.8 kB / 1.329 GB, free: 19.7 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001255/0.9298, allocations: 1.465 MB / 1.331 GB, free: 18.36 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002466/0.93, allocations: 169 kB / 1.331 GB, free: 18.22 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.897e-05/0.9301, allocations: 33.78 kB / 1.331 GB, free: 18.2 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.518e-05/0.9301, allocations: 2 kB / 1.331 GB, free: 18.2 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.586e-05/0.9301, allocations: 31.47 kB / 1.331 GB, free: 18.16 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.9301, allocations: 0 / 1.331 GB, free: 18.16 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0004853/0.9306, allocations: 227.3 kB / 1.331 GB, free: 17.99 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.899e-05/0.9306, allocations: 61.36 kB / 1.331 GB, free: 17.92 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002113/0.9308, allocations: 192.9 kB / 1.331 GB, free: 17.8 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.04e-05/0.9308, allocations: 26.89 kB / 1.331 GB, free: 17.77 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.145e-05/0.9309, allocations: 170.9 kB / 1.332 GB, free: 17.62 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.9309, allocations: 25.38 kB / 1.332 GB, free: 17.6 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.405e-05/0.931, allocations: 39.41 kB / 1.332 GB, free: 17.57 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.367e-05/0.931, allocations: 334.5 kB / 1.332 GB, free: 17.24 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.802e-05/0.9311, allocations: 36.19 kB / 1.332 GB, free: 17.23 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.562e-05/0.9312, allocations: 96.98 kB / 1.332 GB, free: 17.13 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.9313, allocations: 152.2 kB / 1.332 GB, free: 17 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.9313, allocations: 5.188 kB / 1.332 GB, free: 17 MB / 1.061 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002966/0.9316, allocations: 186.8 kB / 1.332 GB, free: 16.9 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.9317, allocations: 8.469 kB / 1.332 GB, free: 16.9 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.9317, allocations: 3.266 kB / 1.332 GB, free: 16.9 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001617/0.9318, allocations: 29.86 kB / 1.333 GB, free: 16.89 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.9319, allocations: 29.58 kB / 1.333 GB, free: 16.88 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007626/0.9327, allocations: 1.415 MB / 1.334 GB, free: 15.46 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001274/0.9328, allocations: 18.17 kB / 1.334 GB, free: 15.45 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.336e-05/0.9328, allocations: 6.25 kB / 1.334 GB, free: 15.45 MB / 1.061 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.000101/0.9329, allocations: 150.6 kB / 1.334 GB, free: 15.32 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.705e-05/0.933, allocations: 20.03 kB / 1.334 GB, free: 15.3 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.096e-05/0.933, allocations: 19.78 kB / 1.334 GB, free: 15.29 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.933, allocations: 1 kB / 1.334 GB, free: 15.29 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.933, allocations: 1.156 kB / 1.334 GB, free: 15.29 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.933, allocations: 0.5156 kB / 1.334 GB, free: 15.29 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000444/0.9335, allocations: 448.3 kB / 1.335 GB, free: 14.92 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.9335, allocations: 3.938 kB / 1.335 GB, free: 14.92 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.72e-05/0.9335, allocations: 8.5 kB / 1.335 GB, free: 14.92 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.449e-05/0.9336, allocations: 26.44 kB / 1.335 GB, free: 14.9 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.9336, allocations: 0.8438 kB / 1.335 GB, free: 14.9 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006701/0.9343, allocations: 1.424 MB / 1.336 GB, free: 13.47 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.9343, allocations: 0.7969 kB / 1.336 GB, free: 13.47 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001844/0.9344, allocations: 211.3 kB / 1.336 GB, free: 13.3 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 5.304e-05/0.9345, allocations: 97.5 kB / 1.336 GB, free: 13.2 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.73e-05/0.9345, allocations: 1.844 kB / 1.336 GB, free: 13.2 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.9346, allocations: 8.406 kB / 1.336 GB, free: 13.19 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.078e-05/0.9346, allocations: 4.141 kB / 1.336 GB, free: 13.19 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.163e-06/0.9346, allocations: 6.641 kB / 1.336 GB, free: 13.19 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001209/0.9348, allocations: 148.8 kB / 1.336 GB, free: 13.09 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.9348, allocations: 0 / 1.336 GB, free: 13.09 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003299/0.9351, allocations: 53.03 kB / 1.336 GB, free: 13.07 MB / 1.061 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.00033/0.9354, allocations: 0.7433 MB / 1.337 GB, free: 12.37 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003339/0.9358, allocations: 206.6 kB / 1.337 GB, free: 12.23 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.9358, allocations: 0.5625 kB / 1.337 GB, free: 12.23 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001206/0.9359, allocations: 148.4 kB / 1.338 GB, free: 12.1 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003572/0.9362, allocations: 40.83 kB / 1.338 GB, free: 12.09 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001898/0.9381, allocations: 2.049 MB / 1.34 GB, free: 10.45 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002094/0.9383, allocations: 0.755 MB / 1.34 GB, free: 9.734 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 9.548e-05/0.9384, allocations: 24.58 kB / 1.34 GB, free: 9.727 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.385e-05/0.9385, allocations: 51.72 kB / 1.34 GB, free: 9.688 MB / 1.061 GB Notification: Performance of SimCode: time 3.31e-07/0.9385, allocations: 0.5 kB / 1.34 GB, free: 9.688 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02423/0.9627, allocations: 3.796 MB / 1.344 GB, free: 9.082 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.966/10.93, allocations: 14.53 kB / 1.344 GB, free: 9.074 MB / 1.061 GB " [Timeout remaining time 289] (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: 17.22828096401645]