Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.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.001978/0.001978, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001985/0.001985, allocations: 220.9 kB / 22.25 MB, free: 5.125 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.425/1.425, allocations: 230.6 MB / 256 MB, free: 7.957 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.146/3.146, allocations: 0.505 GB / 0.8101 GB, free: 21.97 MB / 0.6231 GB " [Timeout remaining time 177] 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.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad",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.00203/0.00203, allocations: 75.02 kB / 1.177 GB, free: 16.97 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.329/0.331, allocations: 180.2 MB / 1.353 GB, free: 8.387 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.00528/0.3363, allocations: 3.182 MB / 1.356 GB, free: 5.191 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.003431/0.3397, allocations: 2.056 MB / 1.358 GB, free: 3.125 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.3399, allocations: 7.938 kB / 1.358 GB, free: 3.117 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001002/0.3409, allocations: 290.8 kB / 1.358 GB, free: 2.832 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0004883/0.3414, allocations: 203.1 kB / 1.358 GB, free: 2.633 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006654/0.342, allocations: 252.6 kB / 1.359 GB, free: 2.387 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0004164/0.3424, allocations: 318.9 kB / 1.359 GB, free: 2.074 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003156/0.3428, allocations: 153 kB / 1.359 GB, free: 1.918 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000217/0.343, allocations: 135.5 kB / 1.359 GB, free: 1.785 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002907/0.3433, allocations: 163.4 kB / 1.359 GB, free: 1.625 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.632e-05/0.3433, allocations: 20 kB / 1.359 GB, free: 1.605 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006395/0.3439, allocations: 427.1 kB / 1.36 GB, free: 1.188 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 9.809e-05/0.344, allocations: 83.75 kB / 1.36 GB, free: 1.105 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001358/0.3442, allocations: 123.4 kB / 1.36 GB, free: 0.9844 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0006419/0.3448, allocations: 0.4944 MB / 1.361 GB, free: 500 kB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3448, allocations: 0 / 1.361 GB, free: 500 kB / 1.045 GB Notification: Performance of FrontEnd: time 1.352e-06/0.3448, allocations: 0 / 1.361 GB, free: 500 kB / 1.045 GB Notification: Performance of Transformations before backend: time 1.029e-05/0.3448, allocations: 0 / 1.361 GB, free: 500 kB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0008846/0.3457, allocations: 0.4933 MB / 1.361 GB, free: 15.96 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.3458, allocations: 12.03 kB / 1.361 GB, free: 15.95 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.702e-05/0.3458, allocations: 58.72 kB / 1.361 GB, free: 15.88 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007727/0.3466, allocations: 108.7 kB / 1.361 GB, free: 15.78 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003559/0.3469, allocations: 209.9 kB / 1.361 GB, free: 15.55 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/0.347, allocations: 20.81 kB / 1.361 GB, free: 15.53 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.023e-05/0.347, allocations: 16.38 kB / 1.361 GB, free: 15.52 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005657/0.3476, allocations: 356.8 kB / 1.362 GB, free: 15.14 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.3476, allocations: 0 / 1.362 GB, free: 15.14 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.259e-05/0.3476, allocations: 15.98 kB / 1.362 GB, free: 15.12 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.231e-05/0.3477, allocations: 28.42 kB / 1.362 GB, free: 15.1 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004911/0.3482, allocations: 293.5 kB / 1.362 GB, free: 14.81 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002189/0.3503, allocations: 1.623 MB / 1.364 GB, free: 13.04 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004628/0.3508, allocations: 248.9 kB / 1.364 GB, free: 12.78 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001634/0.351, allocations: 113.5 kB / 1.364 GB, free: 12.66 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 7.498e-05/0.351, allocations: 7.984 kB / 1.364 GB, free: 12.66 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/0.3511, allocations: 34.56 kB / 1.364 GB, free: 12.61 MB / 1.061 GB Notification: Performance of pre-optimization done (n=16): time 1.262e-06/0.3511, allocations: 0 / 1.364 GB, free: 12.61 MB / 1.061 GB Notification: Performance of matching and sorting (n=23): time 0.002472/0.3535, allocations: 0.9101 MB / 1.365 GB, free: 11.69 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.377e-05/0.3536, allocations: 84.98 kB / 1.365 GB, free: 11.59 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002237/0.3538, allocations: 207.8 kB / 1.365 GB, free: 11.37 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/0.3539, allocations: 33.7 kB / 1.365 GB, free: 11.33 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.354, allocations: 180.4 kB / 1.365 GB, free: 11.15 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 7e-05/0.354, allocations: 79.31 kB / 1.365 GB, free: 11.07 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.3541, allocations: 65.69 kB / 1.366 GB, free: 11 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.3543, allocations: 326.8 kB / 1.366 GB, free: 10.68 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002074/0.3545, allocations: 131.9 kB / 1.366 GB, free: 10.55 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002619/0.3548, allocations: 209.2 kB / 1.366 GB, free: 10.31 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000508/0.3553, allocations: 377 kB / 1.367 GB, free: 9.906 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3553, allocations: 0 / 1.367 GB, free: 9.906 MB / 1.061 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008875/0.3561, allocations: 0.5004 MB / 1.367 GB, free: 9.387 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.3562, allocations: 4 kB / 1.367 GB, free: 9.383 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-06/0.3562, allocations: 8 kB / 1.367 GB, free: 9.375 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000539/0.3567, allocations: 155.5 kB / 1.367 GB, free: 9.211 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002512/0.357, allocations: 59.91 kB / 1.367 GB, free: 9.152 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003364/0.3603, allocations: 3.979 MB / 1.371 GB, free: 4.891 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001914/0.3605, allocations: 20.02 kB / 1.371 GB, free: 4.871 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.731e-05/0.3606, allocations: 19.92 kB / 1.371 GB, free: 4.852 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001892/0.3607, allocations: 169.6 kB / 1.371 GB, free: 4.676 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.545e-05/0.3608, allocations: 24 kB / 1.371 GB, free: 4.652 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009158/0.3617, allocations: 474.7 kB / 1.372 GB, free: 4.168 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.3617, allocations: 4 kB / 1.372 GB, free: 4.164 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.3617, allocations: 7.984 kB / 1.372 GB, free: 4.156 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.3617, allocations: 4 kB / 1.372 GB, free: 4.152 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001592/0.3633, allocations: 0.9576 MB / 1.373 GB, free: 3.109 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.3633, allocations: 0 / 1.373 GB, free: 3.109 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001322/0.3635, allocations: 35.92 kB / 1.373 GB, free: 3.074 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004/0.3639, allocations: 139.6 kB / 1.373 GB, free: 2.926 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.058e-05/0.3639, allocations: 12.03 kB / 1.373 GB, free: 2.914 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00306/0.3669, allocations: 3.96 MB / 1.377 GB, free: 14.68 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.3669, allocations: 4.188 kB / 1.377 GB, free: 14.67 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008338/0.3678, allocations: 0.6216 MB / 1.377 GB, free: 14 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.3679, allocations: 51.77 kB / 1.377 GB, free: 13.95 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.29e-05/0.3679, allocations: 4 kB / 1.377 GB, free: 13.94 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/0.3682, allocations: 19.98 kB / 1.377 GB, free: 13.92 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.142e-05/0.3682, allocations: 31.89 kB / 1.378 GB, free: 13.89 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.931e-05/0.3682, allocations: 12 kB / 1.378 GB, free: 13.88 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0001545/0.3684, allocations: 153.5 kB / 1.378 GB, free: 13.73 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/0.3684, allocations: 0 / 1.378 GB, free: 13.73 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0005003/0.3689, allocations: 99.86 kB / 1.378 GB, free: 13.63 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001222/0.3701, allocations: 1.198 MB / 1.379 GB, free: 12.37 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0009554/0.3711, allocations: 0.5718 MB / 1.38 GB, free: 11.77 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 6.483e-06/0.3711, allocations: 0 / 1.38 GB, free: 11.77 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0005363/0.3716, allocations: 394.3 kB / 1.38 GB, free: 11.36 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005038/0.3721, allocations: 37.33 kB / 1.38 GB, free: 11.32 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004408/0.3765, allocations: 3.341 MB / 1.383 GB, free: 7.777 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004518/0.377, allocations: 0.7829 MB / 1.384 GB, free: 6.969 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001773/0.3772, allocations: 66.22 kB / 1.384 GB, free: 6.906 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.3773, allocations: 75.41 kB / 1.384 GB, free: 6.832 MB / 1.076 GB Notification: Performance of SimCode: time 7.91e-07/0.3773, allocations: 0 / 1.384 GB, free: 6.832 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05037/0.4276, allocations: 7.122 MB / 1.391 GB, free: 15.87 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13.14, allocations: 7.984 kB / 1.391 GB, free: 15.86 MB / 1.092 GB " [Timeout remaining time 287] (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_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_AC_OnePhase_Examples_GridDCLoad.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable grid.P.real in file Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.csv. Warning: Get data of variable grid.P.real from file Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.csv failed! Error: Could not read variable grid.P.apparent in file Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.csv. Warning: Get data of variable grid.P.apparent from file Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.csv failed! Error: Could not read variable resistor.S[1] in file Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.csv. Warning: Get data of variable resistor.S[1] from file Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.csv failed! Error: Could not read variable resistor.S[2] in file Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.csv. Warning: Get data of variable resistor.S[2] from file Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.797549549999985]