Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.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.TwoBusesResistiveTransmissionLineFault,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLineFault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLineFault",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.001079/0.001079, allocations: 107.4 kB / 15.34 MB, free: 0.5195 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.00126/0.00126, allocations: 192.9 kB / 16.25 MB, free: 6.613 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.575/1.575, allocations: 205.1 MB / 222.1 MB, free: 4.746 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0595/0.0595, allocations: 14.16 MB / 283.6 MB, free: 7.25 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.001575/0.001575, allocations: 67.91 kB / 344.7 MB, free: 19.64 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1022, allocations: 50.13 MB / 394.8 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault): time 0.01224/0.1145, allocations: 14.1 MB / 408.9 MB, free: 3.305 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009767/0.1243, allocations: 5.939 MB / 414.8 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002628/0.127, allocations: 43.81 kB / 414.9 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002176/0.1293, allocations: 0.6456 MB / 415.5 MB, free: 12.65 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006569/0.1358, allocations: 2.417 MB / 418 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001581/0.1374, allocations: 0.6321 MB / 418.6 MB, free: 9.617 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006643/0.1441, allocations: 4.433 MB / 423 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007642/0.1449, allocations: 308.6 kB / 423.3 MB, free: 4.855 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002331/0.1472, allocations: 1.217 MB / 424.5 MB, free: 3.633 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00194/0.1492, allocations: 1.245 MB / 425.8 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002333/0.1494, allocations: 120 kB / 425.9 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001619/0.151, allocations: 0.5856 MB / 426.5 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002635/0.1513, allocations: 310.4 kB / 426.8 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001448/0.1528, allocations: 1.193 MB / 428 MB, free: 180 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.194/0.3468, allocations: 2.974 MB / 431 MB, free: 15.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3468, allocations: 0 / 431 MB, free: 15.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3468, allocations: 0 / 431 MB, free: 15.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.235e-05/0.3469, allocations: 1.906 kB / 431 MB, free: 15.57 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 402 * Number of variables: 402 Notification: Performance of Generate backend data structure: time 0.01037/0.3573, allocations: 3.222 MB / 434.2 MB, free: 14.42 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.3573, allocations: 9.984 kB / 434.2 MB, free: 14.42 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003206/0.3577, allocations: 226.5 kB / 434.4 MB, free: 14.38 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001764/0.3594, allocations: 346.4 kB / 434.7 MB, free: 14.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002652/0.3621, allocations: 1.33 MB / 436.1 MB, free: 13.81 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.363e-05/0.3622, allocations: 115.6 kB / 436.2 MB, free: 13.81 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002369/0.3624, allocations: 158.5 kB / 436.3 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002725/0.3652, allocations: 1.79 MB / 438.1 MB, free: 13.33 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.794e-05/0.3652, allocations: 6.625 kB / 438.1 MB, free: 13.33 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001272/0.3654, allocations: 69 kB / 438.2 MB, free: 13.33 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.065e-05/0.3654, allocations: 43.59 kB / 438.3 MB, free: 13.33 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002498/0.3679, allocations: 1.504 MB / 439.8 MB, free: 13.31 MB / 318.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.01084/0.3788, allocations: 12.06 MB / 451.8 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00243/0.3812, allocations: 1.873 MB / 453.7 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007913/0.382, allocations: 0.6283 MB / 454.3 MB, free: 2.414 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.888e-05/0.3821, allocations: 19.94 kB / 454.3 MB, free: 2.41 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009896/0.3831, allocations: 0.726 MB / 455.1 MB, free: 2.008 MB / 318.1 MB Notification: Performance of pre-optimization done (n=151): time 2.876e-06/0.3831, allocations: 3.656 kB / 455.1 MB, free: 2.008 MB / 318.1 MB Notification: Performance of matching and sorting (n=151): time 0.00596/0.3891, allocations: 2.675 MB / 457.7 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.058e-05/0.3892, allocations: 237.3 kB / 458 MB, free: 476 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00139/0.3906, allocations: 1.116 MB / 459.1 MB, free: 15.83 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.945e-05/0.3907, allocations: 52.42 kB / 459.1 MB, free: 15.78 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006562/0.3914, allocations: 0.7944 MB / 459.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004925/0.3919, allocations: 0.5114 MB / 460.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004225/0.3923, allocations: 313.4 kB / 460.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.3924, allocations: 316.4 kB / 461.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007178/0.3931, allocations: 491.5 kB / 461.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.3942, allocations: 0.9661 MB / 462.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001889/0.3961, allocations: 1.692 MB / 464.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.999e-06/0.3961, allocations: 3.531 kB / 464.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.003389/0.3995, allocations: 2.064 MB / 466.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.008e-05/0.3996, allocations: 70.98 kB / 466.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.857e-05/0.3996, allocations: 21.38 kB / 466.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001064/0.4007, allocations: 411.1 kB / 466.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001478/0.4022, allocations: 420.8 kB / 467.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004956/0.4071, allocations: 3.985 MB / 471.2 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001953/0.4091, allocations: 158.7 kB / 471.3 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/0.4092, allocations: 77.84 kB / 471.4 MB, free: 7.316 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 10 (transmissionLine.busFault.fault,$PRE.transmissionLine.busFault.fault,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,transmissionLine.busFault.Y.im,$PRE.transmissionLine.busFault.Y.im,transmissionLine.busFault.Y.re,$PRE.transmissionLine.busFault.Y.re) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (200): * Single equations (assignments): 197 * 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): 1 system {(5,27,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007949/0.41, allocations: 486.7 kB / 471.9 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002941/0.4103, allocations: 167.8 kB / 472 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002719/0.413, allocations: 1.697 MB / 473.7 MB, free: 5.109 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.404e-05/0.4131, allocations: 16.03 kB / 473.7 MB, free: 5.094 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-05/0.4131, allocations: 8 kB / 473.7 MB, free: 5.086 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.335e-05/0.4131, allocations: 11.97 kB / 473.8 MB, free: 5.074 MB / 334.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 postOpt removeSimpleEquations (simulation): time 0.005119/0.4182, allocations: 3.599 MB / 477.4 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.4183, allocations: 0 / 477.4 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/0.4194, allocations: 264.6 kB / 477.6 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009261/0.4203, allocations: 376.5 kB / 478 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.119e-05/0.4204, allocations: 24 kB / 478 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005037/0.4255, allocations: 3.942 MB / 481.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.4255, allocations: 3.984 kB / 481.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002812/0.4283, allocations: 1.733 MB / 483.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000745/0.4291, allocations: 382.3 kB / 484.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002089/0.4293, allocations: 28 kB / 484.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008666/0.4302, allocations: 59.67 kB / 484.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001897/0.4304, allocations: 95.81 kB / 484.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.536e-05/0.4305, allocations: 38.06 kB / 484.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000977/0.4314, allocations: 0.7396 MB / 485 MB, free: 9.594 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4314, allocations: 0 / 485 MB, free: 9.594 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001754/0.4332, allocations: 0.5831 MB / 485.6 MB, free: 9.012 MB / 350.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: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,transmissionLine.busFault.Y.re,transmissionLine.busFault.Y.im,transmissionLine.busFault.fault) * Number of discrete states: 7 ($whenCondition4,transmissionLine.busFault.Y.im,transmissionLine.busFault.Y.re,$whenCondition3,transmissionLine.busFault.fault,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 112 * 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): 1 system {(5,27,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00305/0.4363, allocations: 2.45 MB / 488 MB, free: 6.574 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004045/0.4403, allocations: 1.835 MB / 489.9 MB, free: 4.762 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4403, allocations: 1.062 kB / 489.9 MB, free: 4.762 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001398/0.4417, allocations: 1.075 MB / 491 MB, free: 3.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001277/0.443, allocations: 168.8 kB / 491.1 MB, free: 3.512 MB / 350.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02295/0.466, allocations: 13.79 MB / 0.4931 GB, free: 4.895 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008266/0.4669, allocations: 1.258 MB / 0.4943 GB, free: 3.609 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001002/0.4679, allocations: 201 kB / 0.4945 GB, free: 3.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007535/0.4686, allocations: 0.6008 MB / 0.4951 GB, free: 2.809 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4687, allocations: 0 / 0.4951 GB, free: 2.809 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05399/0.5226, allocations: 32.45 MB / 0.5268 GB, free: 2.504 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001801/0.5229, allocations: 238.4 kB / 0.527 GB, free: 2.242 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.36/2.883, allocations: 0 / 0.527 GB, free: 2.242 MB / 398.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault_res.mat --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLineFault_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLineFault.fmu > PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault_res.mat","../files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches