Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad.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.OneBusImpedanceOneVariableLoad,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_OneBusImpedanceOneVariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_OneBusImpedanceOneVariableLoad",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.006207/0.006207, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.001353/0.001353, allocations: 192.8 kB / 16.67 MB, free: 5.969 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.494/1.494, allocations: 205.1 MB / 222.6 MB, free: 4.484 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06741/0.06741, allocations: 14.16 MB / 284.1 MB, free: 6.969 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.002043/0.002043, allocations: 71.89 kB / 396 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2598, allocations: 50.15 MB / 446.1 MB, free: 1.914 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad): time 0.0071/0.2669, allocations: 6.921 MB / 453.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005847/0.2728, allocations: 3.412 MB / 456.5 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007749/0.2736, allocations: 21.66 kB / 456.5 MB, free: 9.539 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001199/0.2749, allocations: 377 kB / 456.9 MB, free: 9.258 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004485/0.2794, allocations: 1.506 MB / 458.4 MB, free: 8.055 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001078/0.2805, allocations: 314.6 kB / 458.7 MB, free: 7.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003546/0.284, allocations: 1.857 MB / 460.5 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003139/0.2844, allocations: 133.4 kB / 460.7 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001043/0.2854, allocations: 0.6331 MB / 461.3 MB, free: 6.207 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008499/0.2863, allocations: 0.6312 MB / 461.9 MB, free: 5.781 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001103/0.2864, allocations: 69.62 kB / 462 MB, free: 5.777 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001062/0.2875, allocations: 346.2 kB / 462.3 MB, free: 5.672 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001657/0.2877, allocations: 166.5 kB / 462.5 MB, free: 5.527 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006183/0.2883, allocations: 0.5337 MB / 463 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002237/0.2905, allocations: 1.43 MB / 464.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2905, allocations: 0 / 464.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.2906, allocations: 0 / 464.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.031e-05/0.2906, allocations: 0 / 464.5 MB, free: 4.18 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.005111/0.2957, allocations: 1.642 MB / 466.1 MB, free: 3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.2958, allocations: 9.094 kB / 466.1 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001348/0.2959, allocations: 107.8 kB / 466.2 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00067/0.2966, allocations: 154.5 kB / 466.4 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001454/0.298, allocations: 0.7 MB / 467.1 MB, free: 2.043 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.329e-05/0.2981, allocations: 54 kB / 467.1 MB, free: 1.988 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.241e-05/0.2982, allocations: 64 kB / 467.2 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.2994, allocations: 0.6707 MB / 467.9 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/0.2994, allocations: 0 / 467.9 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.782e-05/0.2995, allocations: 28 kB / 467.9 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.943e-05/0.2995, allocations: 16 kB / 467.9 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001178/0.3007, allocations: 0.631 MB / 468.5 MB, free: 0.5586 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 preOpt removeSimpleEquations (simulation): time 0.00669/0.3074, allocations: 4.477 MB / 473 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001715/0.3092, allocations: 1.152 MB / 474.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000468/0.3097, allocations: 269.6 kB / 474.4 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.256e-05/0.3097, allocations: 12 kB / 474.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.259e-05/0.3098, allocations: 46.48 kB / 474.5 MB, free: 9.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=78): time 3.466e-06/0.3098, allocations: 4 kB / 474.5 MB, free: 9.926 MB / 350.1 MB Notification: Performance of matching and sorting (n=78): time 0.004139/0.3139, allocations: 1.432 MB / 475.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.881e-05/0.314, allocations: 85.11 kB / 476 MB, free: 8.344 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008037/0.3148, allocations: 0.5421 MB / 476.5 MB, free: 7.789 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.56e-05/0.3149, allocations: 41.7 kB / 476.6 MB, free: 7.742 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00029/0.3152, allocations: 329 kB / 476.9 MB, free: 7.414 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003132/0.3155, allocations: 289.5 kB / 477.2 MB, free: 7.129 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001878/0.3157, allocations: 110.6 kB / 477.3 MB, free: 7.016 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.3159, allocations: 374.8 kB / 477.7 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003932/0.3163, allocations: 197.9 kB / 477.8 MB, free: 6.445 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004254/0.3168, allocations: 265.3 kB / 478.1 MB, free: 6.172 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008457/0.3176, allocations: 0.4992 MB / 478.6 MB, free: 5.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.3176, allocations: 4 kB / 478.6 MB, free: 5.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002093/0.3197, allocations: 0.8567 MB / 479.5 MB, free: 4.785 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.3198, allocations: 4 kB / 479.5 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3198, allocations: 0 / 479.5 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001256/0.3211, allocations: 293.3 kB / 479.8 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005388/0.3216, allocations: 127.9 kB / 479.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005705/0.3273, allocations: 4.243 MB / 484.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008714/0.3282, allocations: 47.77 kB / 484.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.784e-05/0.3283, allocations: 20 kB / 484.2 MB, free: 15.79 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (66): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,7), (3,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003538/0.3286, allocations: 217.7 kB / 484.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000182/0.3288, allocations: 87.56 kB / 484.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002144/0.331, allocations: 0.8949 MB / 485.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.331, allocations: 8 kB / 485.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.331, allocations: 3.938 kB / 485.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.331, allocations: 3.984 kB / 485.4 MB, free: 14.55 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.003723/0.3348, allocations: 2.23 MB / 487.6 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/0.3348, allocations: 4 kB / 487.6 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004775/0.3353, allocations: 111.8 kB / 487.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001188/0.3365, allocations: 285.3 kB / 488 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.495e-05/0.3365, allocations: 12 kB / 488 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005295/0.3418, allocations: 4.138 MB / 492.2 MB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3419, allocations: 0 / 492.2 MB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002258/0.3441, allocations: 1.034 MB / 493.2 MB, free: 6.305 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004892/0.3447, allocations: 228.4 kB / 493.4 MB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.3448, allocations: 16 kB / 493.4 MB, free: 6.047 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006081/0.3454, allocations: 32.06 kB / 493.5 MB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/0.3455, allocations: 51.92 kB / 493.5 MB, free: 5.965 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.102e-05/0.3456, allocations: 31.92 kB / 493.6 MB, free: 5.934 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005207/0.3461, allocations: 390.8 kB / 493.9 MB, free: 5.555 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3461, allocations: 4.469 kB / 493.9 MB, free: 5.551 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009964/0.3471, allocations: 307.8 kB / 494.2 MB, free: 5.25 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (60): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,7), (3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002605/0.3498, allocations: 1.642 MB / 495.9 MB, free: 3.574 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001846/0.3516, allocations: 0.8969 MB / 496.8 MB, free: 2.652 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3516, allocations: 0 / 496.8 MB, free: 2.652 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001191/0.3528, allocations: 0.6654 MB / 497.4 MB, free: 1.961 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009507/0.3538, allocations: 143.9 kB / 497.6 MB, free: 1.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/0.3639, allocations: 5.91 MB / 0.4917 GB, free: 11.78 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000607/0.3645, allocations: 0.9397 MB / 0.4926 GB, free: 10.81 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003742/0.3649, allocations: 88.98 kB / 0.4927 GB, free: 10.72 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004136/0.3654, allocations: 267.3 kB / 0.493 GB, free: 10.46 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3654, allocations: 0 / 0.493 GB, free: 10.46 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05771/0.4231, allocations: 20.07 MB / 0.5126 GB, free: 6.363 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.37, allocations: 7.516 kB / 0.5126 GB, free: 6.359 MB / 398.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad.sim & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 PowerGrids_PowerGrids_Electrical_Test_OneBusImpedanceOneVariableLoad.fmu > PowerGrids_PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches