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.005433/0.005432, allocations: 100.6 kB / 15.73 MB, free: 6.016 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.001326/0.001326, allocations: 185.9 kB / 16.67 MB, free: 5.934 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.422/1.422, allocations: 205.1 MB / 222.6 MB, free: 4.492 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.07534/0.07534, 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.002014/0.002014, allocations: 67.89 kB / 396 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2336, allocations: 50.14 MB / 446.1 MB, free: 1.914 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestOneBusTransmissionLineWithBreakersOneLoad): time 0.007479/0.2411, allocations: 7.422 MB / 453.6 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005849/0.247, allocations: 3.597 MB / 457.2 MB, free: 8.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008837/0.2479, allocations: 21.09 kB / 457.2 MB, free: 8.988 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001193/0.2491, allocations: 428.9 kB / 457.6 MB, free: 8.672 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004251/0.2534, allocations: 1.77 MB / 459.4 MB, free: 7.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001029/0.2544, allocations: 482.7 kB / 459.8 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002597/0.257, allocations: 2.035 MB / 461.9 MB, free: 5.688 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002703/0.2573, allocations: 128 kB / 462 MB, free: 5.617 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009794/0.2583, allocations: 0.6813 MB / 462.7 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009447/0.2593, allocations: 0.685 MB / 463.4 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000124/0.2594, allocations: 66.66 kB / 463.4 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001105/0.2605, allocations: 412.6 kB / 463.8 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001804/0.2607, allocations: 163.1 kB / 464 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006358/0.2614, allocations: 0.5813 MB / 464.6 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002293/0.2637, allocations: 1.555 MB / 466.1 MB, free: 3.039 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.2637, allocations: 0 / 466.1 MB, free: 3.039 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2637, allocations: 1.062 kB / 466.1 MB, free: 3.039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.839e-05/0.2637, allocations: 0 / 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.005339/0.2691, allocations: 1.821 MB / 468 MB, free: 1.195 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.2691, allocations: 16.02 kB / 468 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001515/0.2693, allocations: 126.9 kB / 468.1 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006218/0.2699, allocations: 164.2 kB / 468.3 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00136/0.2713, allocations: 0.7161 MB / 469 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001095/0.2714, allocations: 107.6 kB / 469.1 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.2715, allocations: 76.08 kB / 469.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001298/0.2728, allocations: 0.81 MB / 470 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/0.2729, allocations: 4 kB / 470 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.672e-05/0.2729, allocations: 32 kB / 470 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.675e-05/0.273, allocations: 16 kB / 470 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001322/0.2743, allocations: 0.7727 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.006999/0.2813, allocations: 5.36 MB / 476.1 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00178/0.2831, allocations: 0.962 MB / 477.1 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005253/0.2836, allocations: 323.8 kB / 477.4 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.813e-05/0.2837, allocations: 9 kB / 477.4 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008526/0.2846, allocations: 0.6586 MB / 478.1 MB, free: 6.309 MB / 350.1 MB Notification: Performance of pre-optimization done (n=92): time 3.186e-06/0.2846, allocations: 0 / 478.1 MB, free: 6.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=92): time 0.005264/0.2898, allocations: 1.807 MB / 479.9 MB, free: 4.465 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001861/0.29, allocations: 303.7 kB / 480.2 MB, free: 4.102 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007657/0.2908, allocations: 0.55 MB / 480.7 MB, free: 3.543 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.039e-05/0.2909, allocations: 41.7 kB / 480.8 MB, free: 3.496 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003139/0.2912, allocations: 377 kB / 481.1 MB, free: 3.121 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003019/0.2915, allocations: 317.2 kB / 481.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002354/0.2918, allocations: 146.6 kB / 481.6 MB, free: 2.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002132/0.292, allocations: 386.7 kB / 482 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004365/0.2924, allocations: 241.9 kB / 482.2 MB, free: 2.035 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005456/0.293, allocations: 383.8 kB / 482.6 MB, free: 1.617 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.2941, allocations: 0.7321 MB / 483.3 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.2941, allocations: 8 kB / 483.3 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002207/0.2963, allocations: 1.107 MB / 484.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.604e-05/0.2964, allocations: 71.39 kB / 484.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.2964, allocations: 7.938 kB / 484.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001111/0.2975, allocations: 299.1 kB / 484.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006745/0.2982, allocations: 163.8 kB / 485 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005041/0.3032, allocations: 3.316 MB / 488.3 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000821/0.3041, allocations: 59.61 kB / 488.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.618e-05/0.3042, allocations: 31.94 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.0004234/0.3046, allocations: 287.8 kB / 488.7 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/0.3047, allocations: 87.48 kB / 488.7 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002227/0.307, allocations: 1.09 MB / 489.8 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.307, allocations: 8 kB / 489.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.307, allocations: 0 / 489.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.307, allocations: 3.984 kB / 489.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003442/0.3105, allocations: 2.216 MB / 492.1 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.3105, allocations: 0 / 492.1 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006106/0.3111, allocations: 143.8 kB / 492.2 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009744/0.3121, allocations: 289 kB / 492.5 MB, free: 7.371 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.924e-05/0.3122, allocations: 19.94 kB / 492.5 MB, free: 7.352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004686/0.3168, allocations: 3.252 MB / 495.8 MB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.3169, allocations: 0 / 495.8 MB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002221/0.3191, allocations: 1.162 MB / 496.9 MB, free: 2.773 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004184/0.3195, allocations: 248.4 kB / 497.2 MB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001157/0.3196, allocations: 19.98 kB / 497.2 MB, free: 2.492 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005445/0.3202, allocations: 24 kB / 497.2 MB, free: 2.469 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001609/0.3204, allocations: 68.91 kB / 497.3 MB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.863e-05/0.3204, allocations: 20 kB / 497.3 MB, free: 2.379 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005348/0.321, allocations: 398.8 kB / 497.7 MB, free: 1.992 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.321, allocations: 7.938 kB / 497.7 MB, free: 1.984 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000979/0.322, allocations: 359.8 kB / 498 MB, free: 1.633 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.002645/0.3246, allocations: 1.777 MB / 499.8 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001996/0.3266, allocations: 1.173 MB / 0.4892 GB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.3266, allocations: 0 / 0.4892 GB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001292/0.3279, allocations: 0.8462 MB / 0.4901 GB, free: 13.74 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007319/0.3287, allocations: 127.1 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.01042/0.3391, allocations: 6.655 MB / 0.4967 GB, free: 6.762 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006346/0.3398, allocations: 0.959 MB / 0.4976 GB, free: 5.777 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000394/0.3402, allocations: 97.67 kB / 0.4977 GB, free: 5.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004141/0.3406, allocations: 283.3 kB / 0.498 GB, free: 5.402 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3406, allocations: 0 / 0.498 GB, free: 5.402 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05393/0.3945, allocations: 21.31 MB / 0.5188 GB, free: 88 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.34, allocations: 3.75 kB / 0.5188 GB, free: 84 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