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.007454/0.007454, allocations: 102.6 kB / 15.74 MB, free: 5.508 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.001837/0.001837, allocations: 195.6 kB / 16.67 MB, free: 5.438 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.481/1.481, allocations: 205.1 MB / 222.5 MB, free: 4.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.09173/0.09173, allocations: 14.17 MB / 284.1 MB, free: 6.957 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.002171/0.002171, allocations: 71.91 kB / 396 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.2941, allocations: 50.15 MB / 446.1 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad): time 0.008802/0.303, allocations: 7.415 MB / 453.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007706/0.3107, allocations: 3.609 MB / 457.2 MB, free: 9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001399/0.3122, allocations: 20.94 kB / 457.2 MB, free: 8.996 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00173/0.314, allocations: 425.5 kB / 457.6 MB, free: 8.684 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005573/0.3196, allocations: 1.762 MB / 459.4 MB, free: 7.289 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001321/0.3209, allocations: 490.7 kB / 459.8 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003523/0.3245, allocations: 2.032 MB / 461.9 MB, free: 5.699 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000453/0.3249, allocations: 127 kB / 462 MB, free: 5.629 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001632/0.3266, allocations: 0.6853 MB / 462.7 MB, free: 5.227 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001689/0.3283, allocations: 0.686 MB / 463.4 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003712/0.3287, allocations: 66.56 kB / 463.4 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001881/0.3305, allocations: 412.1 kB / 463.8 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003177/0.3309, allocations: 167.9 kB / 464 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001437/0.3323, allocations: 0.5724 MB / 464.6 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004018/0.3364, allocations: 1.555 MB / 466.1 MB, free: 3.051 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.052e-05/0.3364, allocations: 5.219 kB / 466.1 MB, free: 3.047 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.948e-06/0.3364, allocations: 4 kB / 466.1 MB, free: 3.043 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.753e-05/0.3365, allocations: 3.938 kB / 466.1 MB, free: 3.039 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.007288/0.3438, allocations: 1.822 MB / 468 MB, free: 1.188 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.503e-05/0.3439, allocations: 12.03 kB / 468 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003372/0.3442, allocations: 122.9 kB / 468.1 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009909/0.3452, allocations: 164.2 kB / 468.3 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002008/0.3472, allocations: 0.72 MB / 469 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001427/0.3474, allocations: 103.6 kB / 469.1 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001571/0.3476, allocations: 76.08 kB / 469.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001693/0.3493, allocations: 0.81 MB / 470 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.511e-05/0.3493, allocations: 3.938 kB / 470 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.156e-05/0.3494, allocations: 40 kB / 470 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.081e-05/0.3494, allocations: 16 kB / 470 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001513/0.3509, allocations: 0.765 MB / 470.8 MB, free: 14.27 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.008313/0.3593, allocations: 5.36 MB / 476.1 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001803/0.3611, allocations: 0.9582 MB / 477.1 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005421/0.3617, allocations: 331.7 kB / 477.4 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.216e-05/0.3617, allocations: 9 kB / 477.4 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008903/0.3626, allocations: 0.6469 MB / 478.1 MB, free: 6.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=92): time 3.266e-06/0.3626, allocations: 0 / 478.1 MB, free: 6.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=92): time 0.005543/0.3682, allocations: 1.807 MB / 479.9 MB, free: 4.473 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000239/0.3685, allocations: 307.7 kB / 480.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001036/0.3695, allocations: 0.55 MB / 480.7 MB, free: 3.547 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.818e-05/0.3696, allocations: 41.7 kB / 480.8 MB, free: 3.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003943/0.37, allocations: 377 kB / 481.1 MB, free: 3.125 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004067/0.3704, allocations: 325.2 kB / 481.5 MB, free: 2.805 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002788/0.3707, allocations: 142.6 kB / 481.6 MB, free: 2.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002337/0.371, allocations: 386.7 kB / 482 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004857/0.3715, allocations: 237.9 kB / 482.2 MB, free: 2.039 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005859/0.3721, allocations: 387.8 kB / 482.6 MB, free: 1.617 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001104/0.3732, allocations: 0.7283 MB / 483.3 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.646e-06/0.3732, allocations: 4 kB / 483.3 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002391/0.3756, allocations: 1.114 MB / 484.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.4e-05/0.3757, allocations: 67.39 kB / 484.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.3757, allocations: 7.938 kB / 484.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001119/0.3768, allocations: 295.5 kB / 484.8 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006952/0.3775, allocations: 163.8 kB / 485 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005436/0.383, allocations: 3.324 MB / 488.3 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009414/0.3839, allocations: 55.67 kB / 488.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.948e-05/0.384, allocations: 31.98 kB / 488.4 MB, free: 11.61 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.000481/0.3845, allocations: 283.7 kB / 488.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001592/0.3847, allocations: 87.48 kB / 488.7 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002288/0.387, allocations: 1.098 MB / 489.8 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.387, allocations: 15.92 kB / 489.8 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.387, allocations: 0 / 489.8 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.387, allocations: 3.984 kB / 489.8 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003736/0.3908, allocations: 2.201 MB / 492.1 MB, free: 7.805 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.3908, allocations: 4 kB / 492.1 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005913/0.3914, allocations: 131.9 kB / 492.2 MB, free: 7.672 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001016/0.3924, allocations: 293 kB / 492.5 MB, free: 7.383 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.664e-05/0.3925, allocations: 23.92 kB / 492.5 MB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004952/0.3975, allocations: 3.252 MB / 495.7 MB, free: 3.965 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.3975, allocations: 0 / 495.7 MB, free: 3.965 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002674/0.4002, allocations: 1.162 MB / 496.9 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006515/0.4008, allocations: 248.3 kB / 497.1 MB, free: 2.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002523/0.4011, allocations: 24 kB / 497.2 MB, free: 2.496 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008066/0.4019, allocations: 20 kB / 497.2 MB, free: 2.477 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002098/0.4021, allocations: 72.89 kB / 497.3 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.01e-05/0.4022, allocations: 24 kB / 497.3 MB, free: 2.379 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007352/0.4029, allocations: 386.8 kB / 497.7 MB, free: 2.004 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.403, allocations: 0 / 497.7 MB, free: 2.004 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001622/0.4046, allocations: 359.8 kB / 498 MB, free: 1.652 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.003211/0.4078, allocations: 1.796 MB / 499.8 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002357/0.4102, allocations: 1.173 MB / 0.4892 GB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.4102, allocations: 0 / 0.4892 GB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001444/0.4117, allocations: 0.8383 MB / 0.4901 GB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001134/0.4128, allocations: 130.2 kB / 0.4902 GB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/0.4247, allocations: 6.655 MB / 0.4967 GB, free: 6.766 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007097/0.4255, allocations: 0.9668 MB / 0.4976 GB, free: 5.773 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005338/0.426, allocations: 97.69 kB / 0.4977 GB, free: 5.676 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000474/0.4265, allocations: 283.3 kB / 0.498 GB, free: 5.398 MB / 382.1 MB Notification: Performance of SimCode: time 1.133e-06/0.4265, allocations: 0 / 0.498 GB, free: 5.398 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06792/0.4945, allocations: 21.3 MB / 0.5188 GB, free: 88 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.12/13.61, allocations: 11.5 kB / 0.5188 GB, free: 76 kB / 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