Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.OneBusTransmissionLineOneLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerGrids.Electrical.Test.OneBusTransmissionLineOneLoad,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_OneBusTransmissionLineOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.OneBusTransmissionLineOneLoad,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_OneBusTransmissionLineOneLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007734/0.007734, allocations: 101 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001972/0.001972, allocations: 192.2 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06562/0.06562, allocations: 14.16 MB / 284.1 MB, free: 7.004 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002017/0.002017, allocations: 67.89 kB / 396 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2575/0.2595, allocations: 50.14 MB / 446.1 MB, free: 1.934 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.OneBusTransmissionLineOneLoad): time 0.00764/0.2672, allocations: 7.154 MB / 453.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005785/0.273, allocations: 3.52 MB / 456.8 MB, free: 9.293 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008411/0.2739, allocations: 21.44 kB / 456.8 MB, free: 9.285 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001246/0.2752, allocations: 412.9 kB / 457.2 MB, free: 8.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003922/0.2791, allocations: 1.562 MB / 458.8 MB, free: 7.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001187/0.2803, allocations: 0.5625 MB / 459.4 MB, free: 7.309 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002419/0.2828, allocations: 1.83 MB / 461.2 MB, free: 6.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002521/0.283, allocations: 132.5 kB / 461.3 MB, free: 6.102 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008406/0.2839, allocations: 0.6026 MB / 461.9 MB, free: 5.738 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007911/0.2847, allocations: 0.626 MB / 462.6 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.2848, allocations: 61.5 kB / 462.6 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001043/0.2858, allocations: 433.2 kB / 463 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.286, allocations: 155.5 kB / 463.2 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005821/0.2866, allocations: 0.5322 MB / 463.7 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00208/0.2887, allocations: 1.497 MB / 465.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2887, allocations: 3.938 kB / 465.2 MB, free: 3.652 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2887, allocations: 0 / 465.2 MB, free: 3.652 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.746e-05/0.2887, allocations: 1.156 kB / 465.2 MB, free: 3.652 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.005198/0.2939, allocations: 1.718 MB / 466.9 MB, free: 2.227 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.294, allocations: 8.031 kB / 466.9 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001446/0.2941, allocations: 118.7 kB / 467.1 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006074/0.2947, allocations: 148.3 kB / 467.2 MB, free: 1.949 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001283/0.296, allocations: 0.6772 MB / 467.9 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.559e-05/0.2961, allocations: 62.12 kB / 467.9 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.2962, allocations: 68 kB / 468 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.2974, allocations: 0.7553 MB / 468.8 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.2974, allocations: 3.938 kB / 468.8 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.119e-05/0.2975, allocations: 31.98 kB / 468.8 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.508e-05/0.2975, allocations: 16 kB / 468.8 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.2986, allocations: 0.6714 MB / 469.5 MB, free: 15.58 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00656/0.3052, allocations: 5.239 MB / 474.7 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/0.3069, allocations: 0.9382 MB / 475.7 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004436/0.3073, allocations: 290.8 kB / 475.9 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.787e-05/0.3074, allocations: 12.64 kB / 476 MB, free: 8.523 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.815e-05/0.3074, allocations: 43.22 kB / 476 MB, free: 8.473 MB / 350.1 MB Notification: Performance of pre-optimization done (n=77): time 2.565e-06/0.3074, allocations: 0 / 476 MB, free: 8.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=77): time 0.004482/0.3119, allocations: 1.566 MB / 477.6 MB, free: 6.875 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/0.312, allocations: 67.98 kB / 477.6 MB, free: 6.797 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007445/0.3127, allocations: 0.5537 MB / 478.2 MB, free: 6.234 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.566e-05/0.3128, allocations: 41.7 kB / 478.2 MB, free: 6.188 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002954/0.3131, allocations: 360.7 kB / 478.6 MB, free: 5.828 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002548/0.3133, allocations: 285.5 kB / 478.9 MB, free: 5.547 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001944/0.3135, allocations: 130.6 kB / 479 MB, free: 5.414 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002084/0.3138, allocations: 370.8 kB / 479.4 MB, free: 5.043 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003594/0.3141, allocations: 209.9 kB / 479.6 MB, free: 4.836 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004706/0.3146, allocations: 334 kB / 479.9 MB, free: 4.473 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008783/0.3155, allocations: 0.5797 MB / 480.5 MB, free: 3.855 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3155, allocations: 0 / 480.5 MB, free: 3.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.001887/0.3174, allocations: 0.955 MB / 481.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.3174, allocations: 12.03 kB / 481.4 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.3174, allocations: 0 / 481.4 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001104/0.3186, allocations: 291.2 kB / 481.7 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006392/0.3192, allocations: 167.8 kB / 481.9 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005044/0.3243, allocations: 3.331 MB / 485.2 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007328/0.325, allocations: 55.72 kB / 485.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.694e-05/0.3251, allocations: 28 kB / 485.3 MB, free: 14.89 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (71): * Single equations (assignments): 70 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0003259/0.3254, allocations: 221.6 kB / 485.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.3255, allocations: 83.47 kB / 485.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00184/0.3274, allocations: 0.8763 MB / 486.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.3274, allocations: 11.94 kB / 486.5 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.3274, allocations: 4 kB / 486.5 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.405e-06/0.3274, allocations: 3.984 kB / 486.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003063/0.3305, allocations: 1.917 MB / 488.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.3305, allocations: 0 / 488.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007851/0.3313, allocations: 135.7 kB / 488.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001623/0.333, allocations: 289 kB / 488.8 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.678e-05/0.333, allocations: 20 kB / 488.8 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005196/0.3382, allocations: 3.252 MB / 492.1 MB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3383, allocations: 0 / 492.1 MB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001857/0.3401, allocations: 0.9408 MB / 493 MB, free: 6.875 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000417/0.3406, allocations: 228.5 kB / 493.3 MB, free: 6.633 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.479e-05/0.3406, allocations: 8 kB / 493.3 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005245/0.3412, allocations: 31.86 kB / 493.3 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.3413, allocations: 56.58 kB / 493.3 MB, free: 6.539 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.054e-05/0.3413, allocations: 19.94 kB / 493.4 MB, free: 6.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005277/0.3419, allocations: 390.8 kB / 493.7 MB, free: 6.141 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3419, allocations: 0 / 493.7 MB, free: 6.141 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009775/0.3429, allocations: 331.8 kB / 494.1 MB, free: 5.816 MB / 366.1 MB 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 (51): * Single equations (assignments): 50 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002246/0.3451, allocations: 1.562 MB / 495.6 MB, free: 4.223 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001622/0.3467, allocations: 0.8607 MB / 496.5 MB, free: 3.352 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.3468, allocations: 0 / 496.5 MB, free: 3.352 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009752/0.3477, allocations: 0.5907 MB / 497.1 MB, free: 2.746 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007017/0.3485, allocations: 110.3 kB / 497.2 MB, free: 2.637 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009741/0.3582, allocations: 6.026 MB / 0.4914 GB, free: 12.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006662/0.3589, allocations: 0.9389 MB / 0.4923 GB, free: 11.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003521/0.3593, allocations: 85.31 kB / 0.4924 GB, free: 11.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003764/0.3597, allocations: 259.3 kB / 0.4927 GB, free: 11.14 MB / 382.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3597, allocations: 0 / 0.4927 GB, free: 11.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05492/0.4146, allocations: 19.78 MB / 0.512 GB, free: 7.328 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/13.18, allocations: 8 kB / 0.512 GB, free: 7.32 MB / 398.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.OneBusTransmissionLineOneLoad.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.OneBusTransmissionLineOneLoad.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.OneBusTransmissionLineOneLoad.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.OneBusTransmissionLineOneLoad.sim & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Electrical.Test.OneBusTransmissionLineOneLoad_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 PowerGrids_PowerGrids_Electrical_Test_OneBusTransmissionLineOneLoad.fmu > PowerGrids_PowerGrids.Electrical.Test.OneBusTransmissionLineOneLoad.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.OneBusTransmissionLineOneLoad_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.OneBusTransmissionLineOneLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.OneBusTransmissionLineOneLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches