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.001178/0.001178, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00118/0.00118, allocations: 192.8 kB / 16.14 MB, free: 6.703 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.156/1.156, allocations: 205.1 MB / 222 MB, free: 4.77 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05708/0.05708, allocations: 14.15 MB / 283.5 MB, free: 7.316 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.001241/0.001241, allocations: 75.89 kB / 344.5 MB, free: 19.74 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06698/0.06823, allocations: 50.14 MB / 394.6 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine): time 0.00615/0.07441, allocations: 7.438 MB / 402.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003534/0.07796, allocations: 3.542 MB / 405.6 MB, free: 6.543 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002327/0.0782, allocations: 15.94 kB / 405.6 MB, free: 6.527 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006605/0.07888, allocations: 366.4 kB / 406 MB, free: 6.168 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002392/0.08128, allocations: 1.477 MB / 407.5 MB, free: 4.691 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008449/0.08213, allocations: 0.5579 MB / 408 MB, free: 4.133 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001581/0.08372, allocations: 1.844 MB / 409.9 MB, free: 2.285 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001803/0.08391, allocations: 118.5 kB / 410 MB, free: 2.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004293/0.08435, allocations: 0.4897 MB / 410.5 MB, free: 1.668 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004564/0.08481, allocations: 0.5249 MB / 411 MB, free: 1.141 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.101e-05/0.08488, allocations: 28 kB / 411 MB, free: 1.113 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005616/0.08545, allocations: 371.7 kB / 411.4 MB, free: 0.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.879e-05/0.08555, allocations: 119.2 kB / 411.5 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003619/0.08591, allocations: 489.3 kB / 412 MB, free: 156 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001078/0.087, allocations: 1.336 MB / 413.3 MB, free: 14.81 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.08701, allocations: 0 / 413.3 MB, free: 14.81 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.08702, allocations: 0 / 413.3 MB, free: 14.81 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.08703, allocations: 0 / 413.3 MB, free: 14.81 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.004259/0.09129, allocations: 1.672 MB / 415 MB, free: 13.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.09133, allocations: 11.97 kB / 415 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001229/0.09146, allocations: 122.8 kB / 415.1 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000522/0.09199, allocations: 147.7 kB / 415.3 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009025/0.0929, allocations: 0.6491 MB / 415.9 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.039e-05/0.09295, allocations: 62.12 kB / 416 MB, free: 12.05 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.879e-05/0.09303, allocations: 72 kB / 416 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001053/0.09409, allocations: 0.7503 MB / 416.8 MB, free: 11.21 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.09412, allocations: 0 / 416.8 MB, free: 11.21 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.827e-05/0.09418, allocations: 32 kB / 416.8 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/0.0942, allocations: 20 kB / 416.8 MB, free: 11.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.09527, allocations: 0.73 MB / 417.6 MB, free: 10.43 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.003928/0.09921, allocations: 4.417 MB / 422 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001676/0.1009, allocations: 1.171 MB / 423.2 MB, free: 4.246 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004033/0.1013, allocations: 319.7 kB / 423.5 MB, free: 3.934 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.865e-05/0.1014, allocations: 12.64 kB / 423.5 MB, free: 3.922 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.355e-05/0.1014, allocations: 47.22 kB / 423.5 MB, free: 3.867 MB / 318.1 MB Notification: Performance of pre-optimization done (n=82): time 1.693e-06/0.1014, allocations: 0 / 423.5 MB, free: 3.867 MB / 318.1 MB Notification: Performance of matching and sorting (n=82): time 0.002552/0.104, allocations: 1.264 MB / 424.8 MB, free: 2.574 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.223e-05/0.104, allocations: 60.06 kB / 424.9 MB, free: 2.504 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004613/0.1045, allocations: 494.3 kB / 425.3 MB, free: 2.016 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.526e-05/0.1045, allocations: 33.7 kB / 425.4 MB, free: 1.977 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000195/0.1047, allocations: 356.1 kB / 425.7 MB, free: 1.621 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001754/0.1049, allocations: 287.8 kB / 426 MB, free: 1.336 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/0.1051, allocations: 130.6 kB / 426.1 MB, free: 1.199 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1052, allocations: 370.8 kB / 426.5 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003282/0.1055, allocations: 221.9 kB / 426.7 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003805/0.1059, allocations: 312.9 kB / 427 MB, free: 292 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1188/0.2247, allocations: 0.5759 MB / 427.6 MB, free: 37.45 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.2247, allocations: 0 / 427.6 MB, free: 37.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001515/0.2263, allocations: 0.8588 MB / 428.4 MB, free: 37.38 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.2263, allocations: 6.016 kB / 428.5 MB, free: 37.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.2263, allocations: 2.75 kB / 428.5 MB, free: 37.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005741/0.2269, allocations: 183 kB / 428.6 MB, free: 37.37 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007312/0.2277, allocations: 195 kB / 428.8 MB, free: 37.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002447/0.2301, allocations: 2.33 MB / 431.2 MB, free: 35.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005306/0.2307, allocations: 51.36 kB / 431.2 MB, free: 35.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.775e-05/0.2307, allocations: 29.98 kB / 431.2 MB, free: 35.83 MB / 318.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.0002712/0.231, allocations: 221.4 kB / 431.4 MB, free: 35.64 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/0.2312, allocations: 82.59 kB / 431.5 MB, free: 35.62 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00131/0.2325, allocations: 0.8362 MB / 432.4 MB, free: 35.23 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.2325, allocations: 7.875 kB / 432.4 MB, free: 35.23 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.2325, allocations: 3.672 kB / 432.4 MB, free: 35.23 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.2325, allocations: 9.891 kB / 432.4 MB, free: 35.23 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002227/0.2347, allocations: 1.879 MB / 434.3 MB, free: 34.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.2348, allocations: 5.141 kB / 434.3 MB, free: 34.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006404/0.2354, allocations: 172.1 kB / 434.4 MB, free: 34.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004833/0.2359, allocations: 176.8 kB / 434.6 MB, free: 34.04 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.428e-05/0.236, allocations: 12.08 kB / 434.6 MB, free: 34.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002199/0.2382, allocations: 2.318 MB / 436.9 MB, free: 32.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2382, allocations: 0.6094 kB / 436.9 MB, free: 32.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001186/0.2394, allocations: 0.8909 MB / 437.8 MB, free: 31.79 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002258/0.2396, allocations: 206 kB / 438 MB, free: 31.61 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.037e-05/0.2397, allocations: 10.56 kB / 438 MB, free: 31.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003928/0.2401, allocations: 37.44 kB / 438.1 MB, free: 31.59 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.526e-05/0.2402, allocations: 57.14 kB / 438.1 MB, free: 31.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-05/0.2402, allocations: 17.45 kB / 438.2 MB, free: 31.57 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003417/0.2406, allocations: 338.6 kB / 438.5 MB, free: 31.41 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2406, allocations: 0 / 438.5 MB, free: 31.41 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006818/0.2413, allocations: 283.2 kB / 438.8 MB, free: 31.37 MB / 318.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.001467/0.2427, allocations: 1.497 MB / 440.3 MB, free: 30.36 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001291/0.244, allocations: 0.832 MB / 441.1 MB, free: 29.99 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.2441, allocations: 0 / 441.1 MB, free: 29.99 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007199/0.2448, allocations: 0.5441 MB / 441.6 MB, free: 29.71 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005437/0.2453, allocations: 90.66 kB / 441.7 MB, free: 29.66 MB / 318.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.007648/0.253, allocations: 6.01 MB / 447.7 MB, free: 26.1 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003511/0.2534, allocations: 0.9347 MB / 448.7 MB, free: 25.39 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004055/0.2538, allocations: 92.28 kB / 448.8 MB, free: 25.36 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002811/0.2541, allocations: 266.7 kB / 449 MB, free: 25.16 MB / 318.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2541, allocations: 0 / 449 MB, free: 25.16 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02262/0.2767, allocations: 14.66 MB / 463.7 MB, free: 13.98 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001339/0.2768, allocations: 240.6 kB / 463.9 MB, free: 13.72 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.779/2.056, allocations: 11.86 kB / 463.9 MB, free: 13.71 MB / 318.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","../files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesPowerTransferTransmissionLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches