Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad.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.TestOneBusTransmissionLineWithBreakersOneLoad,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestOneBusTransmissionLineWithBreakersOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestOneBusTransmissionLineWithBreakersOneLoad",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.004822/0.004822, 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.001145/0.001145, allocations: 202.6 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.336/1.336, 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.06479/0.06479, allocations: 14.17 MB / 284.1 MB, free: 7 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.001643/0.001643, allocations: 75.89 kB / 396 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2557/0.2573, allocations: 50.14 MB / 446.1 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad): time 0.008258/0.2656, allocations: 7.426 MB / 453.6 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006284/0.272, allocations: 3.606 MB / 457.2 MB, free: 8.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00105/0.273, allocations: 20.31 kB / 457.2 MB, free: 8.988 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001339/0.2744, allocations: 421.3 kB / 457.6 MB, free: 8.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004761/0.2792, allocations: 1.82 MB / 459.4 MB, free: 7.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001074/0.2803, allocations: 491.3 kB / 459.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002705/0.2831, allocations: 2.028 MB / 461.9 MB, free: 5.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002606/0.2833, allocations: 130.9 kB / 462.1 MB, free: 5.586 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001135/0.2845, allocations: 0.6983 MB / 462.8 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008142/0.2853, allocations: 0.6859 MB / 463.4 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000109/0.2854, allocations: 67 kB / 463.5 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001081/0.2865, allocations: 407.5 kB / 463.9 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001533/0.2867, allocations: 171.3 kB / 464.1 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000564/0.2873, allocations: 0.5776 MB / 464.6 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002205/0.2895, allocations: 1.554 MB / 466.2 MB, free: 2.996 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2895, allocations: 1.094 kB / 466.2 MB, free: 2.996 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2895, allocations: 0 / 466.2 MB, free: 2.996 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.83e-05/0.2895, allocations: 0 / 466.2 MB, free: 2.996 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.005323/0.2948, allocations: 1.829 MB / 468 MB, free: 1.113 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.2949, allocations: 12.03 kB / 468 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001373/0.295, allocations: 126.9 kB / 468.2 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006157/0.2957, allocations: 168.2 kB / 468.3 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001325/0.297, allocations: 0.7161 MB / 469 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001177/0.2971, allocations: 103.6 kB / 469.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001004/0.2972, allocations: 76 kB / 469.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/0.2985, allocations: 0.8139 MB / 470 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.003e-05/0.2985, allocations: 4 kB / 470 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.742e-05/0.2986, allocations: 32 kB / 470.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.216e-05/0.2986, allocations: 20 kB / 470.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001208/0.2999, allocations: 0.7611 MB / 470.8 MB, free: 14.19 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.006247/0.3061, allocations: 5.356 MB / 476.2 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001664/0.3078, allocations: 0.962 MB / 477.2 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004566/0.3083, allocations: 331.8 kB / 477.5 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.263e-05/0.3083, allocations: 9 kB / 477.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007812/0.3091, allocations: 0.6508 MB / 478.2 MB, free: 6.238 MB / 350.1 MB Notification: Performance of pre-optimization done (n=92): time 3.016e-06/0.3091, allocations: 3.938 kB / 478.2 MB, free: 6.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=92): time 0.005142/0.3143, allocations: 1.807 MB / 480 MB, free: 4.391 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001355/0.3144, allocations: 303.7 kB / 480.3 MB, free: 4.027 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007503/0.3152, allocations: 0.55 MB / 480.8 MB, free: 3.469 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.732e-05/0.3153, allocations: 45.7 kB / 480.9 MB, free: 3.418 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000267/0.3155, allocations: 365 kB / 481.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002806/0.3158, allocations: 325.2 kB / 481.5 MB, free: 2.734 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000305/0.3161, allocations: 146.6 kB / 481.7 MB, free: 2.586 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.3163, allocations: 382.7 kB / 482 MB, free: 2.203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003945/0.3167, allocations: 241.9 kB / 482.3 MB, free: 1.965 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004874/0.3172, allocations: 383.8 kB / 482.7 MB, free: 1.547 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009547/0.3182, allocations: 0.7321 MB / 483.4 MB, free: 0.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.209e-05/0.3182, allocations: 4 kB / 483.4 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002452/0.3207, allocations: 1.107 MB / 484.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.285e-05/0.3208, allocations: 71.7 kB / 484.6 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.3208, allocations: 7.938 kB / 484.6 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001258/0.322, allocations: 295.2 kB / 484.9 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006837/0.3227, allocations: 171.7 kB / 485 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004744/0.3275, allocations: 3.324 MB / 488.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008639/0.3284, allocations: 59.66 kB / 488.4 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.866e-05/0.3285, allocations: 32 kB / 488.4 MB, free: 11.53 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 14 (transmissionLine.breakerStatusInternalB,transmissionLine.breakerStatusInternalA,$PRE.transmissionLine.breakerStatusInternalB,$PRE.transmissionLine.breakerStatusInternalA,transmissionLine.breakerStatus,$PRE.transmissionLine.breakerStatus,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 2 * 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.0003898/0.3289, allocations: 279.7 kB / 488.7 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/0.329, allocations: 87.48 kB / 488.8 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002108/0.3311, allocations: 1.098 MB / 489.9 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.3312, allocations: 8 kB / 489.9 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.3312, allocations: 0 / 489.9 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.3312, allocations: 3.984 kB / 489.9 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003613/0.3348, allocations: 2.204 MB / 492.1 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.3348, allocations: 0 / 492.1 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005678/0.3354, allocations: 143.8 kB / 492.3 MB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009987/0.3364, allocations: 285 kB / 492.5 MB, free: 7.309 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.788e-05/0.3365, allocations: 27.92 kB / 492.6 MB, free: 7.281 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004555/0.3411, allocations: 3.244 MB / 495.8 MB, free: 3.895 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.3411, allocations: 0 / 495.8 MB, free: 3.895 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002206/0.3433, allocations: 1.166 MB / 497 MB, free: 2.707 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005472/0.3439, allocations: 244.4 kB / 497.2 MB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001419/0.344, allocations: 20 kB / 497.2 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005709/0.3446, allocations: 23.98 kB / 497.3 MB, free: 2.406 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001757/0.3448, allocations: 72.94 kB / 497.3 MB, free: 2.332 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.376e-05/0.3448, allocations: 24 kB / 497.4 MB, free: 2.309 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005378/0.3454, allocations: 394.8 kB / 497.7 MB, free: 1.926 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.543e-06/0.3454, allocations: 4 kB / 497.7 MB, free: 1.922 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001153/0.3465, allocations: 359.7 kB / 498.1 MB, free: 1.57 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: 9 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,transmissionLine.breakerStatus) * Number of discrete states: 9 (transmissionLine.breakerStatus,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * 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.002559/0.3491, allocations: 1.785 MB / 499.9 MB, free: 15.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001933/0.3511, allocations: 1.177 MB / 0.4893 GB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3511, allocations: 4 kB / 0.4893 GB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001237/0.3523, allocations: 0.8344 MB / 0.4901 GB, free: 13.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007797/0.3531, allocations: 133.9 kB / 0.4903 GB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01005/0.3632, allocations: 6.654 MB / 0.4968 GB, free: 6.691 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006495/0.3639, allocations: 0.9629 MB / 0.4977 GB, free: 5.703 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003924/0.3643, allocations: 93.69 kB / 0.4978 GB, free: 5.609 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003929/0.3647, allocations: 283.3 kB / 0.4981 GB, free: 5.332 MB / 382.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3647, allocations: 0 / 0.4981 GB, free: 5.332 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06204/0.4267, allocations: 21.3 MB / 0.5189 GB, free: 8 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.04/13.47, allocations: 7.75 kB / 0.5189 GB, free: 0 / 398.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad.sim & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad_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_TestOneBusTransmissionLineWithBreakersOneLoad.fmu > PowerGrids_PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches