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.005212/0.005212, allocations: 97.44 kB / 15.73 MB, free: 6.043 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.001113/0.001113, allocations: 202.6 kB / 16.68 MB, free: 5.961 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.437/1.437, allocations: 205.1 MB / 222.6 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06153/0.06153, allocations: 14.17 MB / 284.1 MB, free: 6.98 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.001614/0.001614, allocations: 72.28 kB / 396 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.2936, allocations: 50.14 MB / 446.1 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad): time 0.007613/0.3013, allocations: 7.418 MB / 453.6 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006138/0.3075, allocations: 3.61 MB / 457.2 MB, free: 8.895 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001131/0.3087, allocations: 20.03 kB / 457.2 MB, free: 8.891 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.3102, allocations: 425.4 kB / 457.6 MB, free: 8.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005012/0.3152, allocations: 1.817 MB / 459.4 MB, free: 7.145 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00121/0.3164, allocations: 487.2 kB / 459.9 MB, free: 6.785 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004252/0.3207, allocations: 2.036 MB / 461.9 MB, free: 5.559 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000421/0.3212, allocations: 133.7 kB / 462.1 MB, free: 5.484 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001488/0.3227, allocations: 0.6976 MB / 462.8 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001362/0.324, allocations: 0.6847 MB / 463.4 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002242/0.3243, allocations: 67.47 kB / 463.5 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001596/0.3259, allocations: 412.6 kB / 463.9 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001809/0.3261, allocations: 166.7 kB / 464.1 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009586/0.3271, allocations: 0.5738 MB / 464.6 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00314/0.3302, allocations: 1.552 MB / 466.2 MB, free: 2.895 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/0.3302, allocations: 1.156 kB / 466.2 MB, free: 2.895 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3303, allocations: 0 / 466.2 MB, free: 2.895 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.065e-05/0.3303, allocations: 0 / 466.2 MB, free: 2.895 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.005823/0.3361, allocations: 1.795 MB / 468 MB, free: 1.039 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.3362, allocations: 8.031 kB / 468 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001391/0.3363, allocations: 126.9 kB / 468.1 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006836/0.337, allocations: 163.7 kB / 468.3 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001403/0.3384, allocations: 0.7038 MB / 469 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001146/0.3386, allocations: 103.6 kB / 469.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.3387, allocations: 76 kB / 469.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.34, allocations: 0.8217 MB / 470 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.34, allocations: 0 / 470 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.515e-05/0.3401, allocations: 32 kB / 470 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.875e-05/0.3401, allocations: 20 kB / 470 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001255/0.3414, allocations: 0.765 MB / 470.8 MB, free: 14.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.006798/0.3482, allocations: 5.348 MB / 476.1 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001642/0.3498, allocations: 0.9629 MB / 477.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004715/0.3503, allocations: 327.8 kB / 477.4 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.485e-05/0.3504, allocations: 9 kB / 477.4 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007997/0.3512, allocations: 0.6614 MB / 478.1 MB, free: 6.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=92): time 3.407e-06/0.3512, allocations: 0 / 478.1 MB, free: 6.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=92): time 0.005/0.3562, allocations: 1.807 MB / 479.9 MB, free: 4.336 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001786/0.3564, allocations: 307.7 kB / 480.2 MB, free: 3.969 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007793/0.3572, allocations: 0.5461 MB / 480.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.658e-05/0.3573, allocations: 45.7 kB / 480.8 MB, free: 3.363 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002734/0.3576, allocations: 356.3 kB / 481.1 MB, free: 3.008 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002802/0.3578, allocations: 307.5 kB / 481.4 MB, free: 2.703 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002219/0.3581, allocations: 142.6 kB / 481.6 MB, free: 2.559 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.3583, allocations: 390.7 kB / 482 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004245/0.3587, allocations: 245.8 kB / 482.2 MB, free: 1.926 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005155/0.3592, allocations: 387.7 kB / 482.6 MB, free: 1.504 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009567/0.3602, allocations: 0.7282 MB / 483.3 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.3602, allocations: 4 kB / 483.3 MB, free: 0.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.00223/0.3624, allocations: 1.106 MB / 484.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.459e-05/0.3626, allocations: 67.7 kB / 484.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.3626, allocations: 11.94 kB / 484.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/0.3637, allocations: 295.2 kB / 484.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006295/0.3643, allocations: 163.7 kB / 484.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004841/0.3692, allocations: 3.315 MB / 488.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008902/0.3701, allocations: 59.52 kB / 488.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.625e-05/0.3702, allocations: 32 kB / 488.4 MB, free: 11.5 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.0004512/0.3706, allocations: 279.7 kB / 488.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/0.3708, allocations: 91 kB / 488.7 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002046/0.3729, allocations: 1.09 MB / 489.8 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.3729, allocations: 8 kB / 489.8 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.3729, allocations: 0 / 489.8 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/0.3729, allocations: 3.984 kB / 489.8 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003402/0.3763, allocations: 2.208 MB / 492 MB, free: 7.707 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.3763, allocations: 0 / 492 MB, free: 7.707 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005548/0.3769, allocations: 139.8 kB / 492.2 MB, free: 7.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009497/0.3779, allocations: 289 kB / 492.4 MB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.794e-05/0.3779, allocations: 27.92 kB / 492.5 MB, free: 7.258 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004336/0.3823, allocations: 3.236 MB / 495.7 MB, free: 3.879 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.3823, allocations: 4.031 kB / 495.7 MB, free: 3.875 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002326/0.3846, allocations: 1.158 MB / 496.9 MB, free: 2.695 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004885/0.3851, allocations: 239.9 kB / 497.1 MB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.3852, allocations: 20 kB / 497.1 MB, free: 2.422 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005266/0.3858, allocations: 35.86 kB / 497.2 MB, free: 2.387 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001755/0.386, allocations: 68.91 kB / 497.2 MB, free: 2.316 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.694e-05/0.386, allocations: 24 kB / 497.2 MB, free: 2.293 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005371/0.3866, allocations: 394.8 kB / 497.6 MB, free: 1.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3866, allocations: 7.938 kB / 497.6 MB, free: 1.902 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001102/0.3877, allocations: 351.8 kB / 498 MB, free: 1.559 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.002518/0.3902, allocations: 1.788 MB / 499.8 MB, free: 15.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00221/0.3924, allocations: 1.173 MB / 0.4892 GB, free: 14.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.3924, allocations: 0 / 0.4892 GB, free: 14.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001315/0.3938, allocations: 0.8267 MB / 0.49 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.001201/0.395, allocations: 126.2 kB / 0.4901 GB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01245/0.4075, allocations: 6.63 MB / 0.4966 GB, free: 6.723 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007342/0.4082, allocations: 0.9629 MB / 0.4975 GB, free: 5.734 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004099/0.4087, allocations: 93.69 kB / 0.4976 GB, free: 5.641 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004245/0.4091, allocations: 287.3 kB / 0.4979 GB, free: 5.359 MB / 382.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4091, allocations: 0 / 0.4979 GB, free: 5.359 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05335/0.4625, allocations: 21.3 MB / 0.5187 GB, free: 56 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/13.24, allocations: 7.75 kB / 0.5187 GB, free: 48 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad_res.mat --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TestOneBusTransmissionLineWithBreakersOneLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TestOneBusTransmissionLineWithBreakersOneLoad.fmu > PowerGrids_PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad_res.mat","/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