Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.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.TwoBusesResistiveTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLine",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.001726/0.001726, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002403/0.002403, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.594/1.594, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06472/0.06472, allocations: 14.15 MB / 283.9 MB, free: 7.078 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.001394/0.001394, allocations: 78.5 kB / 345.2 MB, free: 19.29 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09404/0.09544, allocations: 50.12 MB / 395.3 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine): time 0.007473/0.103, allocations: 7.291 MB / 402.6 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005574/0.1086, allocations: 3.534 MB / 406.1 MB, free: 6.266 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007453/0.1094, allocations: 19.94 kB / 406.1 MB, free: 6.246 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001097/0.1105, allocations: 417.6 kB / 406.6 MB, free: 5.836 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003624/0.1141, allocations: 1.58 MB / 408.1 MB, free: 4.262 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001181/0.1153, allocations: 0.5642 MB / 408.7 MB, free: 3.695 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002599/0.1179, allocations: 1.844 MB / 410.5 MB, free: 1.848 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003177/0.1183, allocations: 126.5 kB / 410.7 MB, free: 1.715 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001032/0.1193, allocations: 0.6109 MB / 411.3 MB, free: 1.102 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001053/0.1204, allocations: 0.6342 MB / 411.9 MB, free: 476 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001931/0.1206, allocations: 64 kB / 412 MB, free: 412 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001177/0.1218, allocations: 435.6 kB / 412.4 MB, free: 15.97 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001336/0.1219, allocations: 155.3 kB / 412.5 MB, free: 15.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005138/0.1224, allocations: 0.548 MB / 413.1 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001649/0.1241, allocations: 1.433 MB / 414.5 MB, free: 13.83 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.1241, allocations: 3.984 kB / 414.5 MB, free: 13.83 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1241, allocations: 0 / 414.5 MB, free: 13.83 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.1241, allocations: 0 / 414.5 MB, free: 13.83 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.005189/0.1293, allocations: 1.746 MB / 416.3 MB, free: 12.03 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.1294, allocations: 15.97 kB / 416.3 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001289/0.1295, allocations: 118.8 kB / 416.4 MB, free: 11.89 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005881/0.1301, allocations: 151.7 kB / 416.6 MB, free: 11.74 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001118/0.1312, allocations: 0.6649 MB / 417.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.637e-05/0.1313, allocations: 54.12 kB / 417.3 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.699e-05/0.1314, allocations: 72 kB / 417.3 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.1325, allocations: 0.7732 MB / 418.1 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.1326, allocations: 4 kB / 418.1 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.029e-05/0.1326, allocations: 28 kB / 418.2 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.939e-05/0.1327, allocations: 20 kB / 418.2 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.1338, allocations: 0.7026 MB / 418.9 MB, free: 9.348 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.006225/0.14, allocations: 5.111 MB / 424 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00168/0.1417, allocations: 0.9477 MB / 424.9 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004409/0.1422, allocations: 303.8 kB / 425.2 MB, free: 2.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.101e-05/0.1422, allocations: 12.64 kB / 425.2 MB, free: 2.398 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.1423, allocations: 39.22 kB / 425.3 MB, free: 2.352 MB / 318.1 MB Notification: Performance of pre-optimization done (n=78): time 2.745e-06/0.1423, allocations: 3.938 kB / 425.3 MB, free: 2.348 MB / 318.1 MB Notification: Performance of matching and sorting (n=78): time 0.002965/0.1452, allocations: 1.24 MB / 426.5 MB, free: 1.078 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/0.1453, allocations: 60.06 kB / 426.6 MB, free: 1.008 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007472/0.146, allocations: 0.5492 MB / 427.1 MB, free: 464 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.196e-05/0.1461, allocations: 41.7 kB / 427.2 MB, free: 416 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002784/0.1464, allocations: 363.8 kB / 427.5 MB, free: 44 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1793/0.3257, allocations: 274.4 kB / 427.8 MB, free: 37.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002393/0.326, allocations: 137 kB / 427.9 MB, free: 37.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.3261, allocations: 372.3 kB / 428.3 MB, free: 37.17 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003974/0.3265, allocations: 219.7 kB / 428.5 MB, free: 37.17 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004505/0.327, allocations: 331.1 kB / 428.8 MB, free: 37.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008453/0.3278, allocations: 0.5903 MB / 429.4 MB, free: 36.98 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.3279, allocations: 1.375 kB / 429.4 MB, free: 36.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001762/0.3296, allocations: 0.8614 MB / 430.3 MB, free: 36.86 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.599e-05/0.3297, allocations: 14.34 kB / 430.3 MB, free: 36.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.3297, allocations: 3.016 kB / 430.3 MB, free: 36.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000596/0.3303, allocations: 184.9 kB / 430.5 MB, free: 36.85 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008556/0.3311, allocations: 195.8 kB / 430.7 MB, free: 36.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003003/0.3342, allocations: 2.528 MB / 433.2 MB, free: 35.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007661/0.3349, allocations: 53.23 kB / 433.3 MB, free: 34.99 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.757e-05/0.335, allocations: 28.3 kB / 433.3 MB, free: 34.98 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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.0003134/0.3353, allocations: 226.2 kB / 433.5 MB, free: 34.79 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/0.3355, allocations: 72.78 kB / 433.6 MB, free: 34.76 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001414/0.3369, allocations: 0.8099 MB / 434.4 MB, free: 34.37 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.3369, allocations: 11.72 kB / 434.4 MB, free: 34.36 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.3369, allocations: 2.938 kB / 434.4 MB, free: 34.36 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.918e-06/0.337, allocations: 7.188 kB / 434.4 MB, free: 34.36 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 postOpt removeSimpleEquations (simulation): time 0.002541/0.3395, allocations: 1.848 MB / 436.3 MB, free: 33.33 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.481e-06/0.3395, allocations: 0 / 436.3 MB, free: 33.33 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007134/0.3402, allocations: 157.3 kB / 436.4 MB, free: 33.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005052/0.3408, allocations: 179 kB / 436.6 MB, free: 33.28 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.701e-05/0.3408, allocations: 11.33 kB / 436.6 MB, free: 33.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002923/0.3437, allocations: 2.531 MB / 439.1 MB, free: 31.32 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.3438, allocations: 0 / 439.1 MB, free: 31.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001465/0.3452, allocations: 0.8638 MB / 440 MB, free: 30.86 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003247/0.3456, allocations: 226.7 kB / 440.2 MB, free: 30.67 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.424e-05/0.3457, allocations: 15.28 kB / 440.2 MB, free: 30.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005401/0.3462, allocations: 21.02 kB / 440.2 MB, free: 30.65 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.3464, allocations: 50.08 kB / 440.3 MB, free: 30.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.385e-05/0.3464, allocations: 18 kB / 440.3 MB, free: 30.64 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005764/0.347, allocations: 388.3 kB / 440.7 MB, free: 30.46 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.347, allocations: 4 kB / 440.7 MB, free: 30.45 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001437/0.3484, allocations: 301.5 kB / 441 MB, free: 30.41 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 (63): * Single equations (assignments): 62 * 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.002155/0.3506, allocations: 1.475 MB / 442.5 MB, free: 29.4 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002115/0.3527, allocations: 0.8434 MB / 443.3 MB, free: 29.02 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.3528, allocations: 0 / 443.3 MB, free: 29.02 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008757/0.3536, allocations: 0.5234 MB / 443.8 MB, free: 28.74 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/0.3547, allocations: 117 kB / 443.9 MB, free: 28.68 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.009297/0.364, allocations: 6.032 MB / 450 MB, free: 25.2 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004801/0.3645, allocations: 0.9451 MB / 450.9 MB, free: 24.48 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005327/0.3651, allocations: 94.41 kB / 451 MB, free: 24.45 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003453/0.3654, allocations: 277.3 kB / 451.3 MB, free: 24.25 MB / 318.1 MB Notification: Performance of SimCode: time 1.272e-06/0.3654, allocations: 0 / 451.3 MB, free: 24.25 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04079/0.4062, allocations: 17.02 MB / 468.3 MB, free: 9.773 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.239/9.645, allocations: 20.64 kB / 468.3 MB, free: 9.754 MB / 318.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.sim & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLine.fmu > PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches