Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.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.TwoBusesPowerTransferTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesPowerTransferTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesPowerTransferTransmissionLine",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.006509/0.00651, allocations: 95.36 kB / 15.73 MB, free: 6.039 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.001455/0.001456, allocations: 197.2 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.549/1.549, 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.06417/0.06417, allocations: 14.17 MB / 284.1 MB, free: 6.992 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.001434/0.001434, allocations: 71.89 kB / 396 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2843, allocations: 50.14 MB / 446.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine): time 0.008286/0.2926, allocations: 7.299 MB / 453.4 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006379/0.2991, allocations: 3.534 MB / 457 MB, free: 9.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001362/0.3005, allocations: 13.84 kB / 457 MB, free: 9.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001436/0.302, allocations: 427.7 kB / 457.4 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00437/0.3064, allocations: 1.625 MB / 459 MB, free: 7.559 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001241/0.3076, allocations: 0.5678 MB / 459.6 MB, free: 7.133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002808/0.3105, allocations: 1.849 MB / 461.4 MB, free: 5.992 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002966/0.3108, allocations: 133 kB / 461.6 MB, free: 5.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001211/0.312, allocations: 0.6328 MB / 462.2 MB, free: 5.531 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009975/0.313, allocations: 0.6379 MB / 462.8 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001299/0.3131, allocations: 64.31 kB / 462.9 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001281/0.3144, allocations: 436.5 kB / 463.3 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001552/0.3146, allocations: 160.1 kB / 463.5 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00068/0.3153, allocations: 0.5477 MB / 464 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002693/0.318, allocations: 1.524 MB / 465.6 MB, free: 3.406 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.318, allocations: 1.031 kB / 465.6 MB, free: 3.406 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.318, allocations: 0 / 465.6 MB, free: 3.406 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.317e-05/0.3181, allocations: 0 / 465.6 MB, free: 3.406 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.0061/0.3242, allocations: 1.771 MB / 467.3 MB, free: 1.836 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.3242, allocations: 8.031 kB / 467.3 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001409/0.3244, allocations: 122.8 kB / 467.5 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007442/0.3251, allocations: 152.2 kB / 467.6 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001572/0.3267, allocations: 0.6889 MB / 468.3 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.566e-05/0.3268, allocations: 58.12 kB / 468.3 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001485/0.3269, allocations: 72 kB / 468.4 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/0.3282, allocations: 0.7504 MB / 469.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.289e-05/0.3282, allocations: 3.938 kB / 469.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.597e-05/0.3283, allocations: 32 kB / 469.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.787e-05/0.3283, allocations: 16 kB / 469.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001207/0.3295, allocations: 0.7261 MB / 469.9 MB, free: 15.14 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.006672/0.3362, allocations: 4.816 MB / 474.8 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001893/0.3381, allocations: 1.17 MB / 475.9 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004827/0.3386, allocations: 322.7 kB / 476.2 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.13e-05/0.3387, allocations: 12.66 kB / 476.3 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.3387, allocations: 43.22 kB / 476.3 MB, free: 8.168 MB / 350.1 MB Notification: Performance of pre-optimization done (n=82): time 3.497e-06/0.3388, allocations: 0 / 476.3 MB, free: 8.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=82): time 0.00313/0.3419, allocations: 1.268 MB / 477.6 MB, free: 6.871 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.342, allocations: 64 kB / 477.6 MB, free: 6.797 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007971/0.3428, allocations: 0.5342 MB / 478.2 MB, free: 6.254 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.117e-05/0.3428, allocations: 45.7 kB / 478.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003066/0.3431, allocations: 352.8 kB / 478.6 MB, free: 5.852 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000314/0.3435, allocations: 305.3 kB / 478.9 MB, free: 5.551 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001972/0.3437, allocations: 130.6 kB / 479 MB, free: 5.418 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001957/0.3439, allocations: 374.8 kB / 479.3 MB, free: 5.043 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003687/0.3443, allocations: 221.9 kB / 479.6 MB, free: 4.824 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004221/0.3447, allocations: 312.9 kB / 479.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008679/0.3456, allocations: 0.5825 MB / 480.5 MB, free: 3.898 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.3456, allocations: 0 / 480.5 MB, free: 3.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001629/0.3472, allocations: 0.8491 MB / 481.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/0.3473, allocations: 8 kB / 481.3 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.3473, allocations: 8.172 kB / 481.3 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006282/0.3479, allocations: 180.6 kB / 481.5 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008388/0.3488, allocations: 195.8 kB / 481.7 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003335/0.3521, allocations: 2.536 MB / 484.2 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008618/0.353, allocations: 55.67 kB / 484.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.861e-05/0.3531, allocations: 28.03 kB / 484.3 MB, free: 15.89 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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.0003704/0.3534, allocations: 217.8 kB / 484.5 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001898/0.3536, allocations: 79.52 kB / 484.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001538/0.3552, allocations: 0.8415 MB / 485.4 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.3552, allocations: 8 kB / 485.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.996e-05/0.3552, allocations: 4 kB / 485.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.377e-06/0.3552, allocations: 7.922 kB / 485.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003015/0.3583, allocations: 2.009 MB / 487.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.3583, allocations: 0 / 487.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007291/0.359, allocations: 167.8 kB / 487.6 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005115/0.3595, allocations: 172.2 kB / 487.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.849e-05/0.3596, allocations: 16 kB / 487.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003128/0.3627, allocations: 2.528 MB / 490.3 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3628, allocations: 0 / 490.3 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001525/0.3643, allocations: 0.8942 MB / 491.2 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004463/0.3648, allocations: 228.5 kB / 491.5 MB, free: 8.426 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.3649, allocations: 15.98 kB / 491.5 MB, free: 8.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005499/0.3654, allocations: 24 kB / 491.5 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.7e-05/0.3655, allocations: 52.58 kB / 491.5 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.174e-05/0.3656, allocations: 16 kB / 491.6 MB, free: 8.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004864/0.3661, allocations: 382.8 kB / 491.9 MB, free: 7.949 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3661, allocations: 0 / 491.9 MB, free: 7.949 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009717/0.367, allocations: 307.8 kB / 492.2 MB, free: 7.648 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 (67): * Single equations (assignments): 66 * 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.001914/0.369, allocations: 1.516 MB / 493.8 MB, free: 6.102 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001584/0.3706, allocations: 0.8303 MB / 494.6 MB, free: 5.266 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.3706, allocations: 0 / 494.6 MB, free: 5.266 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008631/0.3715, allocations: 0.5372 MB / 495.1 MB, free: 4.715 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009003/0.3724, allocations: 121.5 kB / 495.2 MB, free: 4.598 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008908/0.3813, allocations: 5.81 MB / 0.4893 GB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006031/0.3819, allocations: 0.9426 MB / 0.4902 GB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004782/0.3824, allocations: 105.3 kB / 0.4903 GB, free: 13.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004417/0.3829, allocations: 271.3 kB / 0.4906 GB, free: 13.32 MB / 382.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3829, allocations: 0 / 0.4906 GB, free: 13.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04725/0.4301, allocations: 17.55 MB / 0.5077 GB, free: 11.76 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.32, allocations: 8.75 kB / 0.5077 GB, free: 11.75 MB / 398.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.sim & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine_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_TwoBusesPowerTransferTransmissionLine.fmu > PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches