Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 212.9 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.438/1.438, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1828/0.1828, allocations: 38.53 MB / 352.4 MB, free: 12.55 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 67.89 kB / 492.5 MB, free: 4.883 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.2839, allocations: 62.46 MB / 0.542 GB, free: 456 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.004675/0.2885, allocations: 3.581 MB / 0.5455 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002177/0.2907, allocations: 1.577 MB / 0.547 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001/0.2908, allocations: 12.78 kB / 0.547 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007857/0.2916, allocations: 271.7 kB / 0.5473 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005447/0.2922, allocations: 274.9 kB / 0.5476 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002937/0.2924, allocations: 135.6 kB / 0.5477 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000396/0.2928, allocations: 339.5 kB / 0.548 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002574/0.2931, allocations: 119.5 kB / 0.5481 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000276/0.2934, allocations: 159.4 kB / 0.5483 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002631/0.2936, allocations: 159.7 kB / 0.5484 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.452e-05/0.2937, allocations: 13.53 kB / 0.5484 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005218/0.2942, allocations: 349.7 kB / 0.5488 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001124/0.2943, allocations: 102.4 kB / 0.5489 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.2944, allocations: 105.8 kB / 0.549 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004708/0.2949, allocations: 352.2 kB / 0.5493 GB, free: 10.88 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2949, allocations: 1.031 kB / 0.5493 GB, free: 10.88 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2949, allocations: 0 / 0.5493 GB, free: 10.88 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.2949, allocations: 0 / 0.5493 GB, free: 10.88 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006528/0.2956, allocations: 455.7 kB / 0.5497 GB, free: 10.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.2956, allocations: 13.05 kB / 0.5498 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.984e-05/0.2957, allocations: 54.95 kB / 0.5498 GB, free: 10.42 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008813/0.2965, allocations: 111 kB / 0.5499 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003499/0.2969, allocations: 210.2 kB / 0.5501 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.2969, allocations: 15.44 kB / 0.5501 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.829e-05/0.2969, allocations: 19.5 kB / 0.5502 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004927/0.2974, allocations: 327.6 kB / 0.5505 GB, free: 9.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.2975, allocations: 5.219 kB / 0.5505 GB, free: 9.926 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.345e-05/0.2975, allocations: 5.375 kB / 0.5505 GB, free: 9.922 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.735e-05/0.2975, allocations: 12.03 kB / 0.5505 GB, free: 9.922 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004669/0.298, allocations: 304.1 kB / 0.5508 GB, free: 9.781 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001696/0.2997, allocations: 1.247 MB / 0.552 GB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002742/0.2999, allocations: 121.7 kB / 0.5521 GB, free: 8.598 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.645e-05/0.3, allocations: 37.36 kB / 0.5521 GB, free: 8.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.994e-05/0.3, allocations: 5.219 kB / 0.5521 GB, free: 8.566 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/0.3001, allocations: 43.66 kB / 0.5522 GB, free: 8.516 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.3001, allocations: 1.188 kB / 0.5522 GB, free: 8.516 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002838/0.3003, allocations: 136.4 kB / 0.5523 GB, free: 8.434 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.454e-05/0.3004, allocations: 79.98 kB / 0.5524 GB, free: 8.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002128/0.3006, allocations: 216.1 kB / 0.5526 GB, free: 8.176 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.3006, allocations: 25.7 kB / 0.5526 GB, free: 8.145 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.3008, allocations: 173.5 kB / 0.5528 GB, free: 7.984 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.575e-05/0.3008, allocations: 41 kB / 0.5528 GB, free: 7.949 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.214e-05/0.3008, allocations: 52.66 kB / 0.5529 GB, free: 7.906 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.301, allocations: 327 kB / 0.5532 GB, free: 7.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.813e-05/0.3011, allocations: 37.28 kB / 0.5532 GB, free: 7.566 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001406/0.3012, allocations: 132.9 kB / 0.5534 GB, free: 7.422 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002322/0.3014, allocations: 204.3 kB / 0.5536 GB, free: 7.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.3014, allocations: 1.062 kB / 0.5536 GB, free: 7.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002978/0.3017, allocations: 206.6 kB / 0.5537 GB, free: 7.113 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.3017, allocations: 6.688 kB / 0.5538 GB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.3018, allocations: 7.406 kB / 0.5538 GB, free: 7.109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.3018, allocations: 5.281 kB / 0.5538 GB, free: 7.109 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001629/0.3019, allocations: 48.38 kB / 0.5538 GB, free: 7.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.3019, allocations: 4.406 kB / 0.5538 GB, free: 7.098 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.3021, allocations: 20.05 kB / 0.5538 GB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.705e-05/0.3021, allocations: 12.59 kB / 0.5538 GB, free: 7.082 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001582/0.3022, allocations: 161 kB / 0.554 GB, free: 6.934 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.233e-05/0.3023, allocations: 19.86 kB / 0.554 GB, free: 6.922 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00021/0.3025, allocations: 129.7 kB / 0.5541 GB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.3025, allocations: 1.375 kB / 0.5541 GB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.3025, allocations: 1.188 kB / 0.5541 GB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3025, allocations: 0 / 0.5541 GB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000733/0.3032, allocations: 0.5406 MB / 0.5547 GB, free: 6.344 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.3032, allocations: 2.094 kB / 0.5547 GB, free: 6.344 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.072e-05/0.3033, allocations: 23.95 kB / 0.5547 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.814e-06/0.3033, allocations: 6.781 kB / 0.5547 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.3033, allocations: 3.438 kB / 0.5547 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.3033, allocations: 3.312 kB / 0.5547 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3033, allocations: 3.469 kB / 0.5547 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002805/0.3036, allocations: 290.4 kB / 0.555 GB, free: 6.055 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.012e-05/0.3037, allocations: 20.75 kB / 0.555 GB, free: 6.043 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.473e-05/0.3037, allocations: 15.45 kB / 0.555 GB, free: 6.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.3038, allocations: 3.656 kB / 0.555 GB, free: 6.031 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.36e-05/0.3038, allocations: 21.77 kB / 0.5551 GB, free: 6.016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-06/0.3039, allocations: 8.719 kB / 0.5551 GB, free: 6.012 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001342/0.304, allocations: 152.4 kB / 0.5552 GB, free: 5.902 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.304, allocations: 0 / 0.5552 GB, free: 5.902 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003411/0.3043, allocations: 49.17 kB / 0.5553 GB, free: 5.895 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005524/0.3049, allocations: 0.8187 MB / 0.5561 GB, free: 5.086 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002118/0.3051, allocations: 109.6 kB / 0.5562 GB, free: 5.039 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3051, allocations: 1.125 kB / 0.5562 GB, free: 5.039 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.395e-05/0.3052, allocations: 48.66 kB / 0.5562 GB, free: 5.016 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003965/0.3056, allocations: 36.73 kB / 0.5562 GB, free: 5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002529/0.3081, allocations: 2.326 MB / 0.5585 GB, free: 2.777 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003916/0.3085, allocations: 0.7476 MB / 0.5592 GB, free: 2.004 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001072/0.3086, allocations: 41.61 kB / 0.5593 GB, free: 1.965 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.725e-05/0.3087, allocations: 67.41 kB / 0.5593 GB, free: 1.898 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3087, allocations: 0 / 0.5593 GB, free: 1.898 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.028/0.3367, allocations: 3.599 MB / 0.5629 GB, free: 14.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.33, allocations: 7.938 kB / 0.5629 GB, free: 14.4 MB / 414.1 MB " [Timeout remaining time 649] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.PMeterTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.056134667014703]