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.009272/0.009272, allocations: 96.64 kB / 15.73 MB, free: 6.484 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.001631/0.001631, allocations: 192.3 kB / 16.67 MB, free: 6.391 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.503/1.503, 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.06901/0.06901, allocations: 14.18 MB / 284.1 MB, free: 6.98 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.003043/0.003043, allocations: 71.88 kB / 396 MB, free: 0.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2802, allocations: 50.13 MB / 446.1 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine): time 0.01094/0.2912, allocations: 7.295 MB / 453.4 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008699/0.3, allocations: 3.536 MB / 457 MB, free: 9.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001186/0.3012, allocations: 18.16 kB / 457 MB, free: 9.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001781/0.303, allocations: 416.5 kB / 457.4 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006209/0.3093, allocations: 1.574 MB / 459 MB, free: 7.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001684/0.311, allocations: 0.5677 MB / 459.5 MB, free: 7.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00347/0.3144, allocations: 1.846 MB / 461.4 MB, free: 6.027 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003689/0.3148, allocations: 132.6 kB / 461.5 MB, free: 5.949 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001194/0.316, allocations: 0.6149 MB / 462.1 MB, free: 5.578 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001036/0.3171, allocations: 0.6325 MB / 462.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001005/0.3172, allocations: 67.09 kB / 462.8 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001007/0.3182, allocations: 426.3 kB / 463.2 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001549/0.3184, allocations: 163.8 kB / 463.4 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006248/0.319, allocations: 0.5387 MB / 463.9 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002085/0.3211, allocations: 1.516 MB / 465.4 MB, free: 3.473 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.3211, allocations: 0 / 465.4 MB, free: 3.473 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3211, allocations: 0 / 465.4 MB, free: 3.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.3212, allocations: 0 / 465.4 MB, free: 3.473 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.005696/0.3269, allocations: 1.766 MB / 467.2 MB, free: 1.957 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.3269, allocations: 8.031 kB / 467.2 MB, free: 1.949 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001482/0.3271, allocations: 130.7 kB / 467.4 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006509/0.3277, allocations: 152.2 kB / 467.5 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001357/0.3291, allocations: 0.685 MB / 468.2 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.821e-05/0.3292, allocations: 58.12 kB / 468.2 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.3293, allocations: 72 kB / 468.3 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.3306, allocations: 0.7654 MB / 469.1 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.3306, allocations: 0 / 469.1 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.018e-05/0.3307, allocations: 32.08 kB / 469.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.35e-05/0.3307, allocations: 23.98 kB / 469.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001185/0.3319, allocations: 0.7027 MB / 469.8 MB, free: 15.25 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.006599/0.3385, allocations: 5.077 MB / 474.9 MB, free: 9.648 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001802/0.3403, allocations: 0.9628 MB / 475.9 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004772/0.3408, allocations: 298.7 kB / 476.2 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.807e-05/0.3409, allocations: 20.58 kB / 476.2 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.3409, allocations: 43.22 kB / 476.2 MB, free: 8.277 MB / 350.1 MB Notification: Performance of pre-optimization done (n=78): time 5.3e-06/0.341, allocations: 3.938 kB / 476.2 MB, free: 8.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=78): time 0.003206/0.3442, allocations: 1.249 MB / 477.5 MB, free: 6.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/0.3442, allocations: 60.06 kB / 477.5 MB, free: 6.926 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007882/0.345, allocations: 0.5499 MB / 478.1 MB, free: 6.367 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.507e-05/0.3451, allocations: 37.7 kB / 478.1 MB, free: 6.324 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003006/0.3454, allocations: 372.6 kB / 478.5 MB, free: 5.953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002706/0.3457, allocations: 285.5 kB / 478.8 MB, free: 5.672 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002043/0.3459, allocations: 130.6 kB / 478.9 MB, free: 5.539 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.3461, allocations: 378.7 kB / 479.3 MB, free: 5.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003849/0.3465, allocations: 217.9 kB / 479.5 MB, free: 4.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004928/0.347, allocations: 332.3 kB / 479.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009078/0.3479, allocations: 0.5898 MB / 480.4 MB, free: 3.969 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.3479, allocations: 4 kB / 480.4 MB, free: 3.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001612/0.3495, allocations: 0.8645 MB / 481.3 MB, free: 3.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.3496, allocations: 8 kB / 481.3 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.3496, allocations: 0 / 481.3 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006253/0.3502, allocations: 188.8 kB / 481.5 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008403/0.3511, allocations: 199.8 kB / 481.6 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003475/0.3545, allocations: 2.525 MB / 484.2 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009006/0.3555, allocations: 55.84 kB / 484.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.778e-05/0.3555, allocations: 28 kB / 484.3 MB, free: 15.95 MB / 366.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.000438/0.356, allocations: 221.7 kB / 484.5 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001607/0.3561, allocations: 79.47 kB / 484.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001567/0.3577, allocations: 0.8024 MB / 485.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.3577, allocations: 8 kB / 485.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.892e-06/0.3578, allocations: 4 kB / 485.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.486e-05/0.3578, allocations: 3.984 kB / 485.4 MB, free: 14.81 MB / 366.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.002883/0.3607, allocations: 1.862 MB / 487.2 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.3607, allocations: 0 / 487.2 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008565/0.3615, allocations: 159.8 kB / 487.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005511/0.3621, allocations: 172.1 kB / 487.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.652e-05/0.3622, allocations: 16.09 kB / 487.6 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003502/0.3657, allocations: 2.543 MB / 490.1 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.3657, allocations: 0 / 490.1 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001544/0.3673, allocations: 0.8629 MB / 491 MB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004554/0.3677, allocations: 228.5 kB / 491.2 MB, free: 8.727 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001014/0.3678, allocations: 12 kB / 491.2 MB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005352/0.3684, allocations: 20 kB / 491.2 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.3685, allocations: 52.52 kB / 491.3 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.518e-05/0.3685, allocations: 16 kB / 491.3 MB, free: 8.629 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00054/0.3691, allocations: 386.8 kB / 491.7 MB, free: 8.254 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3691, allocations: 0 / 491.7 MB, free: 8.254 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009036/0.37, allocations: 315.7 kB / 492 MB, free: 7.945 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 (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.001933/0.372, allocations: 1.481 MB / 493.5 MB, free: 6.434 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001605/0.3736, allocations: 0.819 MB / 494.3 MB, free: 5.605 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3736, allocations: 0 / 494.3 MB, free: 5.605 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008732/0.3745, allocations: 0.5332 MB / 494.8 MB, free: 5.059 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000773/0.3753, allocations: 110.3 kB / 494.9 MB, free: 4.953 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008701/0.384, allocations: 5.824 MB / 0.489 GB, free: 14.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005916/0.3846, allocations: 0.9464 MB / 0.4899 GB, free: 14 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004075/0.385, allocations: 93.28 kB / 0.49 GB, free: 13.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004136/0.3854, allocations: 275.3 kB / 0.4903 GB, free: 13.64 MB / 382.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3854, allocations: 0 / 0.4903 GB, free: 13.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04842/0.4339, allocations: 17.36 MB / 0.5072 GB, free: 12.26 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.36, allocations: 7.156 kB / 0.5072 GB, free: 12.26 MB / 398.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine_res.mat --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLine.fmu > PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine_res.mat","/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