Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TwoBusesShuntTransmissionLine.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.TwoBusesShuntTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesShuntTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesShuntTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesShuntTransmissionLine",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.005956/0.005956, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001349/0.001349, allocations: 201.7 kB / 16.68 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.431/1.431, allocations: 205.1 MB / 222.5 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06409/0.06409, allocations: 14.17 MB / 284.1 MB, free: 7.008 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.001596/0.001596, allocations: 75.89 kB / 396 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2712, allocations: 50.14 MB / 446.1 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesShuntTransmissionLine): time 0.007345/0.2786, allocations: 7.292 MB / 453.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005496/0.2841, allocations: 3.536 MB / 457 MB, free: 9.133 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008161/0.2849, allocations: 17.53 kB / 457 MB, free: 9.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0012/0.2862, allocations: 416.4 kB / 457.4 MB, free: 8.824 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004001/0.2902, allocations: 1.625 MB / 459 MB, free: 7.531 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001253/0.2915, allocations: 0.5719 MB / 459.6 MB, free: 7.102 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002471/0.2939, allocations: 1.85 MB / 461.4 MB, free: 5.961 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003649/0.2943, allocations: 128.6 kB / 461.6 MB, free: 5.887 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001085/0.2954, allocations: 0.632 MB / 462.2 MB, free: 5.504 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00118/0.2966, allocations: 0.6362 MB / 462.8 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002068/0.2968, allocations: 62.41 kB / 462.9 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001317/0.2982, allocations: 429.3 kB / 463.3 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000187/0.2984, allocations: 157.5 kB / 463.5 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009219/0.2993, allocations: 0.5428 MB / 464 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002813/0.3021, allocations: 1.515 MB / 465.5 MB, free: 3.398 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.3022, allocations: 4 kB / 465.5 MB, free: 3.395 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3022, allocations: 0 / 465.5 MB, free: 3.395 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.349e-05/0.3022, allocations: 0 / 465.5 MB, free: 3.395 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.006778/0.309, allocations: 1.766 MB / 467.3 MB, free: 1.832 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.202e-05/0.3091, allocations: 8.031 kB / 467.3 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002101/0.3093, allocations: 118.8 kB / 467.4 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008385/0.3101, allocations: 152.2 kB / 467.6 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001791/0.3119, allocations: 0.6889 MB / 468.3 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.445e-05/0.312, allocations: 58.12 kB / 468.3 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001245/0.3121, allocations: 72 kB / 468.4 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001481/0.3136, allocations: 0.7654 MB / 469.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.316e-05/0.3137, allocations: 3.938 kB / 469.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.778e-05/0.3138, allocations: 32 kB / 469.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.999e-05/0.3138, allocations: 20 kB / 469.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001216/0.315, allocations: 0.7026 MB / 469.9 MB, free: 15.13 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.007983/0.323, allocations: 5.11 MB / 475 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002043/0.3251, allocations: 0.955 MB / 476 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00056/0.3257, allocations: 306.7 kB / 476.3 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.209e-05/0.3258, allocations: 12.59 kB / 476.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.318e-05/0.3258, allocations: 43.22 kB / 476.3 MB, free: 8.129 MB / 350.1 MB Notification: Performance of pre-optimization done (n=78): time 4.258e-06/0.3258, allocations: 0 / 476.3 MB, free: 8.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=78): time 0.003306/0.3291, allocations: 1.249 MB / 477.6 MB, free: 6.852 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/0.3292, allocations: 60.06 kB / 477.6 MB, free: 6.781 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009598/0.3302, allocations: 0.5499 MB / 478.2 MB, free: 6.223 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.602e-05/0.3303, allocations: 37.7 kB / 478.2 MB, free: 6.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003084/0.3306, allocations: 380.5 kB / 478.6 MB, free: 5.801 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003617/0.331, allocations: 277.5 kB / 478.9 MB, free: 5.527 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002271/0.3312, allocations: 134.6 kB / 479 MB, free: 5.391 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002212/0.3314, allocations: 378.8 kB / 479.4 MB, free: 5.012 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004/0.3319, allocations: 213.9 kB / 479.6 MB, free: 4.801 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004494/0.3323, allocations: 336.3 kB / 479.9 MB, free: 4.441 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008813/0.3332, allocations: 0.5898 MB / 480.5 MB, free: 3.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.3332, allocations: 4 kB / 480.5 MB, free: 3.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00168/0.3349, allocations: 0.8645 MB / 481.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.3349, allocations: 8 kB / 481.4 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.335, allocations: 3.984 kB / 481.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006576/0.3356, allocations: 185 kB / 481.5 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008528/0.3365, allocations: 203.7 kB / 481.7 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003354/0.3399, allocations: 2.54 MB / 484.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008319/0.3407, allocations: 47.73 kB / 484.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.378e-05/0.3408, allocations: 28 kB / 484.4 MB, free: 15.79 MB / 366.1 MB 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 (83): * Single equations (assignments): 82 * 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 {(4,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003665/0.3412, allocations: 229.8 kB / 484.6 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002203/0.3414, allocations: 79.52 kB / 484.7 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001461/0.3429, allocations: 0.8023 MB / 485.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.357e-06/0.3429, allocations: 8 kB / 485.5 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.3429, allocations: 8 kB / 485.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.934e-06/0.3429, allocations: 3.984 kB / 485.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002769/0.3457, allocations: 1.854 MB / 487.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.3457, allocations: 4 kB / 487.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000695/0.3464, allocations: 163.8 kB / 487.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004932/0.3469, allocations: 172.2 kB / 487.7 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.448e-05/0.347, allocations: 12 kB / 487.7 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003018/0.35, allocations: 2.548 MB / 490.2 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.35, allocations: 0 / 490.2 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001413/0.3514, allocations: 0.8708 MB / 491.1 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004102/0.3518, allocations: 220.5 kB / 491.3 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001302/0.352, allocations: 20 kB / 491.3 MB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005685/0.3526, allocations: 16 kB / 491.4 MB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.042e-05/0.3527, allocations: 60.52 kB / 491.4 MB, free: 8.457 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.97e-05/0.3527, allocations: 16 kB / 491.4 MB, free: 8.441 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005/0.3532, allocations: 386.8 kB / 491.8 MB, free: 8.066 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3532, allocations: 0 / 491.8 MB, free: 8.066 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009728/0.3542, allocations: 307.8 kB / 492.1 MB, free: 7.766 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 (63): * Single equations (assignments): 62 * 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 {(4,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001923/0.3561, allocations: 1.477 MB / 493.6 MB, free: 6.258 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001493/0.3576, allocations: 0.8071 MB / 494.4 MB, free: 5.441 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.3576, allocations: 3.938 kB / 494.4 MB, free: 5.438 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007561/0.3584, allocations: 0.5136 MB / 494.9 MB, free: 4.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007611/0.3592, allocations: 113.5 kB / 495 MB, free: 4.805 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009393/0.3686, allocations: 5.817 MB / 0.4891 GB, free: 14.83 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007295/0.3694, allocations: 0.9464 MB / 0.49 GB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004586/0.3698, allocations: 89.3 kB / 0.4901 GB, free: 13.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004766/0.3703, allocations: 271.3 kB / 0.4904 GB, free: 13.5 MB / 382.1 MB Notification: Performance of SimCode: time 1.754e-06/0.3704, allocations: 4 kB / 0.4904 GB, free: 13.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04466/0.415, allocations: 17.37 MB / 0.5073 GB, free: 12.11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.37, allocations: 12.33 kB / 0.5073 GB, free: 12.09 MB / 398.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.TwoBusesShuntTransmissionLine.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TwoBusesShuntTransmissionLine.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TwoBusesShuntTransmissionLine.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesShuntTransmissionLine.sim & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Electrical.Test.TwoBusesShuntTransmissionLine_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_TwoBusesShuntTransmissionLine.fmu > PowerGrids_PowerGrids.Electrical.Test.TwoBusesShuntTransmissionLine.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TwoBusesShuntTransmissionLine_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TwoBusesShuntTransmissionLine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesShuntTransmissionLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches