Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.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.TwoBusesPowerTransferTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesPowerTransferTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesPowerTransferTransmissionLine",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.004824/0.004824, allocations: 100.9 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.001304/0.001304, allocations: 199 kB / 16.68 MB, free: 5.965 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.418/1.418, 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.06718/0.06718, allocations: 14.16 MB / 284.1 MB, free: 7.004 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.002071/0.002071, allocations: 67.89 kB / 396 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2598, allocations: 50.15 MB / 446.1 MB, free: 1.918 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine): time 0.007207/0.267, allocations: 7.272 MB / 453.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005584/0.2727, allocations: 3.549 MB / 457 MB, free: 9.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006581/0.2733, allocations: 18 kB / 457 MB, free: 9.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001075/0.2745, allocations: 419.4 kB / 457.4 MB, free: 8.844 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003793/0.2783, allocations: 1.571 MB / 459 MB, free: 7.594 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00114/0.2794, allocations: 0.5673 MB / 459.5 MB, free: 7.168 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002621/0.282, allocations: 1.856 MB / 461.4 MB, free: 6.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002804/0.2823, allocations: 121.6 kB / 461.5 MB, free: 5.953 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001031/0.2834, allocations: 0.6193 MB / 462.1 MB, free: 5.578 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008587/0.2843, allocations: 0.6459 MB / 462.8 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.2844, allocations: 64.78 kB / 462.8 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00106/0.2854, allocations: 427.8 kB / 463.3 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001509/0.2856, allocations: 165.1 kB / 463.4 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005728/0.2862, allocations: 0.5472 MB / 464 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002098/0.2883, allocations: 1.528 MB / 465.5 MB, free: 3.445 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.2883, allocations: 0 / 465.5 MB, free: 3.445 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2883, allocations: 1.281 kB / 465.5 MB, free: 3.445 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.321e-05/0.2883, allocations: 0 / 465.5 MB, free: 3.445 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.005689/0.294, allocations: 1.764 MB / 467.3 MB, free: 1.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.2941, allocations: 12.03 kB / 467.3 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000148/0.2942, allocations: 126.7 kB / 467.4 MB, free: 1.766 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006844/0.2949, allocations: 152.2 kB / 467.5 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001401/0.2963, allocations: 0.6811 MB / 468.2 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.473e-05/0.2964, allocations: 62.12 kB / 468.3 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.143e-05/0.2965, allocations: 72 kB / 468.4 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/0.2978, allocations: 0.7464 MB / 469.1 MB, free: 16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/0.2978, allocations: 8 kB / 469.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.904e-05/0.2979, allocations: 28 kB / 469.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.106e-05/0.2979, allocations: 20 kB / 469.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001311/0.2992, allocations: 0.7339 MB / 469.9 MB, free: 15.2 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.007116/0.3063, allocations: 4.816 MB / 474.7 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002037/0.3084, allocations: 1.17 MB / 475.9 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004872/0.3089, allocations: 322.7 kB / 476.2 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.216e-05/0.309, allocations: 8.656 kB / 476.2 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.714e-05/0.309, allocations: 51.16 kB / 476.2 MB, free: 8.227 MB / 350.1 MB Notification: Performance of pre-optimization done (n=82): time 2.254e-06/0.309, allocations: 0 / 476.2 MB, free: 8.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=82): time 0.003189/0.3122, allocations: 1.26 MB / 477.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.3123, allocations: 64.06 kB / 477.6 MB, free: 6.863 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007714/0.3131, allocations: 0.5342 MB / 478.1 MB, free: 6.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.796e-05/0.3131, allocations: 37.7 kB / 478.1 MB, free: 6.277 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002944/0.3134, allocations: 360.8 kB / 478.5 MB, free: 5.918 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002998/0.3137, allocations: 309.3 kB / 478.8 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002248/0.314, allocations: 130.6 kB / 478.9 MB, free: 5.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001901/0.3142, allocations: 374.8 kB / 479.3 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003945/0.3146, allocations: 217.9 kB / 479.5 MB, free: 4.891 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004862/0.315, allocations: 312.9 kB / 479.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009215/0.316, allocations: 0.5786 MB / 480.4 MB, free: 3.969 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.316, allocations: 0 / 480.4 MB, free: 3.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001642/0.3176, allocations: 0.8607 MB / 481.2 MB, free: 3.098 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.3177, allocations: 4 kB / 481.2 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.3177, allocations: 7.984 kB / 481.3 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006053/0.3183, allocations: 180.9 kB / 481.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000832/0.3191, allocations: 195.8 kB / 481.6 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003425/0.3226, allocations: 2.54 MB / 484.2 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008163/0.3234, allocations: 47.67 kB / 484.2 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.381e-05/0.3235, allocations: 36.03 kB / 484.2 MB, free: 15.95 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * 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 {(4,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003449/0.3238, allocations: 217.7 kB / 484.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001492/0.324, allocations: 75.53 kB / 484.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00158/0.3256, allocations: 0.8376 MB / 485.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.3256, allocations: 12 kB / 485.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.3256, allocations: 4 kB / 485.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.3256, allocations: 7.922 kB / 485.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002946/0.3286, allocations: 2.009 MB / 487.4 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.3286, allocations: 4 kB / 487.4 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007248/0.3293, allocations: 167.8 kB / 487.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005214/0.3299, allocations: 168.7 kB / 487.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.982e-05/0.3299, allocations: 12 kB / 487.7 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003291/0.3332, allocations: 2.524 MB / 490.3 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.361e-06/0.3332, allocations: 4 kB / 490.3 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001546/0.3348, allocations: 0.8864 MB / 491.2 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003975/0.3352, allocations: 228.5 kB / 491.4 MB, free: 8.496 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.263e-05/0.3353, allocations: 23.98 kB / 491.4 MB, free: 8.473 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005304/0.3358, allocations: 16 kB / 491.4 MB, free: 8.457 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.336, allocations: 52.58 kB / 491.5 MB, free: 8.406 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.692e-05/0.336, allocations: 20 kB / 491.5 MB, free: 8.387 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005058/0.3365, allocations: 382.8 kB / 491.9 MB, free: 8.016 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3365, allocations: 0 / 491.9 MB, free: 8.016 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008916/0.3374, allocations: 307.7 kB / 492.2 MB, free: 7.715 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * 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 {(4,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002097/0.3395, allocations: 1.508 MB / 493.7 MB, free: 6.176 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001676/0.3412, allocations: 0.8261 MB / 494.5 MB, free: 5.344 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3412, allocations: 384 / 494.5 MB, free: 5.344 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009097/0.3421, allocations: 0.5487 MB / 495.1 MB, free: 4.781 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008646/0.343, allocations: 109.5 kB / 495.2 MB, free: 4.676 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008892/0.3519, allocations: 5.822 MB / 0.4892 GB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006392/0.3526, allocations: 0.9426 MB / 0.4902 GB, free: 13.76 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004077/0.353, allocations: 97.22 kB / 0.4903 GB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000421/0.3535, allocations: 275.3 kB / 0.4905 GB, free: 13.39 MB / 382.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3535, allocations: 0 / 0.4905 GB, free: 13.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07639/0.4299, allocations: 17.55 MB / 0.5077 GB, free: 11.83 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.52, allocations: 12.69 kB / 0.5077 GB, free: 11.82 MB / 398.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine_res.mat --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TwoBusesPowerTransferTransmissionLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TwoBusesPowerTransferTransmissionLine.fmu > PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches