Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.00155/0.00155, allocations: 113 kB / 16.46 MB, free: 6.453 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.001736/0.001736, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.424/1.424, allocations: 230.6 MB / 252.8 MB, free: 8.973 MB / 206.1 MB " [Timeout remaining time 178] 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 3.222/3.222, allocations: 0.505 GB / 0.8066 GB, free: 23.14 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/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.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_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.002015/0.002015, allocations: 68.28 kB / 1.172 GB, free: 17.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.335, allocations: 180.2 MB / 1.348 GB, free: 10 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005225/0.3402, allocations: 3.141 MB / 1.351 GB, free: 6.848 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002391/0.3426, allocations: 1.387 MB / 1.352 GB, free: 5.453 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001488/0.3427, allocations: 7.938 kB / 1.352 GB, free: 5.445 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001049/0.3438, allocations: 338.7 kB / 1.352 GB, free: 5.113 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.000369/0.3441, allocations: 143.3 kB / 1.353 GB, free: 4.973 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003792/0.3445, allocations: 139.6 kB / 1.353 GB, free: 4.836 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0004162/0.3449, allocations: 310.8 kB / 1.353 GB, free: 4.531 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004157/0.3454, allocations: 188.5 kB / 1.353 GB, free: 4.348 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001793/0.3455, allocations: 131.5 kB / 1.353 GB, free: 4.219 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003091/0.3458, allocations: 139.5 kB / 1.353 GB, free: 4.082 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.51e-05/0.3459, allocations: 20 kB / 1.354 GB, free: 4.062 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003006/0.3462, allocations: 171.6 kB / 1.354 GB, free: 3.895 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.3463, allocations: 95.66 kB / 1.354 GB, free: 3.801 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001222/0.3464, allocations: 111.5 kB / 1.354 GB, free: 3.691 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004912/0.3469, allocations: 338.8 kB / 1.354 GB, free: 3.359 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3469, allocations: 0 / 1.354 GB, free: 3.359 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.562e-06/0.3469, allocations: 0 / 1.354 GB, free: 3.359 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.3469, allocations: 0 / 1.354 GB, free: 3.359 MB / 1.045 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.0009086/0.3478, allocations: 0.5143 MB / 1.355 GB, free: 2.793 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.3479, allocations: 15.92 kB / 1.355 GB, free: 2.777 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.391e-05/0.3479, allocations: 62.7 kB / 1.355 GB, free: 2.707 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005812/0.3485, allocations: 80.72 kB / 1.355 GB, free: 2.629 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003447/0.3489, allocations: 240.1 kB / 1.355 GB, free: 2.355 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.3489, allocations: 12.75 kB / 1.355 GB, free: 2.344 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.429e-05/0.3489, allocations: 16.38 kB / 1.355 GB, free: 2.328 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000483/0.3494, allocations: 307.3 kB / 1.355 GB, free: 2.008 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.3494, allocations: 4 kB / 1.355 GB, free: 2.004 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.352e-05/0.3494, allocations: 4 kB / 1.355 GB, free: 2 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.935e-05/0.3495, allocations: 20.36 kB / 1.355 GB, free: 1.98 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003164/0.3498, allocations: 196.9 kB / 1.356 GB, free: 1.789 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001593/0.3514, allocations: 1.46 MB / 1.357 GB, free: 168 kB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000297/0.3517, allocations: 175.7 kB / 1.357 GB, free: 15.96 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.844e-05/0.3517, allocations: 28.84 kB / 1.357 GB, free: 15.93 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 7.434e-06/0.3517, allocations: 0 / 1.357 GB, free: 15.93 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.596e-05/0.3518, allocations: 30.56 kB / 1.357 GB, free: 15.89 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.3518, allocations: 4 kB / 1.357 GB, free: 15.89 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0005215/0.3523, allocations: 231.4 kB / 1.357 GB, free: 15.64 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.136e-05/0.3523, allocations: 55.34 kB / 1.358 GB, free: 15.57 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002121/0.3525, allocations: 195.6 kB / 1.358 GB, free: 15.37 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.3526, allocations: 25.7 kB / 1.358 GB, free: 15.34 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.3527, allocations: 168.1 kB / 1.358 GB, free: 15.17 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.809e-05/0.3527, allocations: 35.72 kB / 1.358 GB, free: 15.14 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.302e-05/0.3528, allocations: 33.72 kB / 1.358 GB, free: 15.1 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001515/0.3529, allocations: 330.8 kB / 1.358 GB, free: 14.77 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.567e-05/0.353, allocations: 31.97 kB / 1.358 GB, free: 14.73 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001174/0.3531, allocations: 96.58 kB / 1.358 GB, free: 14.61 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001961/0.3533, allocations: 156.3 kB / 1.359 GB, free: 14.43 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3533, allocations: 0 / 1.359 GB, free: 14.43 MB / 1.061 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003187/0.3536, allocations: 186.2 kB / 1.359 GB, free: 14.23 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.3537, allocations: 8 kB / 1.359 GB, free: 14.23 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.3537, allocations: 288 / 1.359 GB, free: 14.23 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001597/0.3538, allocations: 32.84 kB / 1.359 GB, free: 14.19 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.3539, allocations: 27.98 kB / 1.359 GB, free: 14.16 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001252/0.3552, allocations: 1.427 MB / 1.36 GB, free: 12.59 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001234/0.3553, allocations: 19.92 kB / 1.36 GB, free: 12.57 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.3553, allocations: 4 kB / 1.36 GB, free: 12.57 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.0001487/0.3555, allocations: 149.8 kB / 1.36 GB, free: 12.41 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.956e-05/0.3555, allocations: 20 kB / 1.36 GB, free: 12.39 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.439e-05/0.3555, allocations: 13.41 kB / 1.36 GB, free: 12.38 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.3555, allocations: 0 / 1.36 GB, free: 12.38 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.3555, allocations: 4 kB / 1.36 GB, free: 12.38 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.299e-06/0.3556, allocations: 3.984 kB / 1.36 GB, free: 12.37 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005527/0.3561, allocations: 443.2 kB / 1.361 GB, free: 11.88 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3561, allocations: 0 / 1.361 GB, free: 11.88 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.351e-05/0.3561, allocations: 11.98 kB / 1.361 GB, free: 11.87 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.364e-05/0.3562, allocations: 28.78 kB / 1.361 GB, free: 11.84 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.3562, allocations: 4 kB / 1.361 GB, free: 11.83 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001113/0.3574, allocations: 1.414 MB / 1.362 GB, free: 10.28 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.838e-06/0.3574, allocations: 3.938 kB / 1.362 GB, free: 10.27 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002382/0.3576, allocations: 204.3 kB / 1.362 GB, free: 10.05 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.158e-05/0.3577, allocations: 101 kB / 1.363 GB, free: 9.938 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.808e-05/0.3577, allocations: 8.094 kB / 1.363 GB, free: 9.93 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.3578, allocations: 11.98 kB / 1.363 GB, free: 9.918 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.026e-05/0.3578, allocations: 4 kB / 1.363 GB, free: 9.914 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.033e-06/0.3579, allocations: 4 kB / 1.363 GB, free: 9.91 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001426/0.358, allocations: 147 kB / 1.363 GB, free: 9.766 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.358, allocations: 0 / 1.363 GB, free: 9.766 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003529/0.3583, allocations: 59.84 kB / 1.363 GB, free: 9.707 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.0005573/0.3589, allocations: 0.7488 MB / 1.364 GB, free: 8.926 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003847/0.3593, allocations: 210.6 kB / 1.364 GB, free: 8.707 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3593, allocations: 0.5625 kB / 1.364 GB, free: 8.707 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001645/0.3595, allocations: 150.6 kB / 1.364 GB, free: 8.547 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003544/0.3598, allocations: 37.75 kB / 1.364 GB, free: 8.512 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002382/0.3622, allocations: 2.046 MB / 1.366 GB, free: 6.332 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003975/0.3626, allocations: 0.7514 MB / 1.367 GB, free: 5.555 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 9.325e-05/0.3627, allocations: 25.53 kB / 1.367 GB, free: 5.531 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.712e-05/0.3628, allocations: 47.42 kB / 1.367 GB, free: 5.484 MB / 1.061 GB Notification: Performance of SimCode: time 6.31e-07/0.3628, allocations: 0 / 1.367 GB, free: 5.484 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03038/0.3932, allocations: 3.769 MB / 1.37 GB, free: 1.852 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.712/10.11, allocations: 10.23 kB / 1.37 GB, free: 1.844 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable sen.I in file Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv. Warning: Get data of variable sen.I from file Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.80607921583578]