Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PowerSystems.Examples.Wind.Test.RotorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_Test_RotorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.Test.RotorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_Test_RotorTest",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.001135/0.001135, allocations: 108 kB / 16.92 MB, free: 6.332 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.001114/0.001114, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 222.9 MB / 241.6 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2145/0.2145, allocations: 38.04 MB / 329.7 MB, free: 8.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 59.66 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09145/0.09286, allocations: 58.06 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.Test.RotorTest): time 0.004193/0.09709, allocations: 2.442 MB / 459.4 MB, free: 5.508 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007464/0.09786, allocations: 442.9 kB / 459.8 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.09799, allocations: 0 / 459.8 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001145/0.09812, allocations: 11.86 kB / 459.9 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001628/0.09831, allocations: 27.78 kB / 459.9 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001101/0.09843, allocations: 27.91 kB / 459.9 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001462/0.09859, allocations: 99.59 kB / 460 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.09871, allocations: 19.98 kB / 460 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001135/0.09883, allocations: 43.83 kB / 460.1 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.438e-05/0.09893, allocations: 43.84 kB / 460.1 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.351e-05/0.09896, allocations: 8 kB / 460.1 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.048e-05/0.09899, allocations: 8 kB / 460.1 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.036e-05/0.09902, allocations: 19.91 kB / 460.1 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.074e-05/0.09908, allocations: 47.73 kB / 460.2 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.09921, allocations: 91.97 kB / 460.3 MB, free: 4.633 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.09923, allocations: 3.984 kB / 460.3 MB, free: 4.629 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.09923, allocations: 0 / 460.3 MB, free: 4.629 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.09924, allocations: 3.938 kB / 460.3 MB, free: 4.625 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006488/0.0999, allocations: 411.1 kB / 460.7 MB, free: 4.176 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.09994, allocations: 19.89 kB / 460.7 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.636e-05/0.1, allocations: 34.75 kB / 460.7 MB, free: 4.113 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.403e-05/0.1, allocations: 8.844 kB / 460.8 MB, free: 4.105 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001791/0.1002, allocations: 196.1 kB / 460.9 MB, free: 3.875 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.1002, allocations: 8.375 kB / 461 MB, free: 3.867 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.399e-05/0.1003, allocations: 11.88 kB / 461 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000246/0.1005, allocations: 96.53 kB / 461.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.1005, allocations: 7.922 kB / 461.1 MB, free: 3.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.1006, allocations: 4 kB / 461.1 MB, free: 3.746 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.1006, allocations: 4 kB / 461.1 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002468/0.1008, allocations: 71.94 kB / 461.1 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000862/0.1017, allocations: 453.3 kB / 461.6 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003279/0.102, allocations: 94.61 kB / 461.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001278/0.1022, allocations: 44.81 kB / 461.7 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.751e-05/0.1022, allocations: 0 / 461.7 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.079e-05/0.1022, allocations: 30.72 kB / 461.8 MB, free: 2.977 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.1022, allocations: 0 / 461.8 MB, free: 2.977 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004564/0.1027, allocations: 149.4 kB / 461.9 MB, free: 2.824 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.57e-05/0.1028, allocations: 55.41 kB / 462 MB, free: 2.758 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.1029, allocations: 140.8 kB / 462.1 MB, free: 2.613 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.1029, allocations: 25.7 kB / 462.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.338e-05/0.103, allocations: 103.9 kB / 462.2 MB, free: 2.477 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.904e-05/0.103, allocations: 27.78 kB / 462.2 MB, free: 2.449 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.115e-05/0.1031, allocations: 25.72 kB / 462.3 MB, free: 2.418 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.1032, allocations: 322.8 kB / 462.6 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.1033, allocations: 27.98 kB / 462.6 MB, free: 2.066 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001435/0.1034, allocations: 59.41 kB / 462.7 MB, free: 1.996 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002417/0.1037, allocations: 103.3 kB / 462.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1037, allocations: 0 / 462.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003206/0.104, allocations: 133.4 kB / 462.9 MB, free: 1.746 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.1041, allocations: 10.34 kB / 462.9 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.1041, allocations: 4.094 kB / 462.9 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.1041, allocations: 3.938 kB / 462.9 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001592/0.1042, allocations: 27.98 kB / 462.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.014e-06/0.1043, allocations: 0 / 462.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.1044, allocations: 31.77 kB / 463 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/0.1044, allocations: 0 / 463 MB, free: 1.672 MB / 334.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 (10): * Single equations (assignments): 10 * 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 9.26e-05/0.1045, allocations: 117.8 kB / 463.1 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.683e-05/0.1045, allocations: 7.906 kB / 463.1 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003272/0.1049, allocations: 126.3 kB / 463.2 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.515e-06/0.1049, allocations: 7.938 kB / 463.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1049, allocations: 192 / 463.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1049, allocations: 0 / 463.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002859/0.1052, allocations: 209.5 kB / 463.4 MB, free: 1.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.1052, allocations: 0 / 463.4 MB, free: 1.145 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001602/0.1054, allocations: 27.97 kB / 463.5 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.1054, allocations: 4 kB / 463.5 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.1054, allocations: 4 kB / 463.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.127e-06/0.1054, allocations: 7.875 kB / 463.5 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1054, allocations: 0 / 463.5 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004705/0.1059, allocations: 247.4 kB / 463.7 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.751e-05/0.106, allocations: 88.95 kB / 463.8 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.258e-05/0.106, allocations: 4.062 kB / 463.8 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.1061, allocations: 15.92 kB / 463.8 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.998e-05/0.1062, allocations: 7.984 kB / 463.8 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-06/0.1062, allocations: 0 / 463.8 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.473e-05/0.1063, allocations: 106.2 kB / 463.9 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1063, allocations: 0 / 463.9 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002539/0.1065, allocations: 24 kB / 464 MB, free: 0.5859 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSpeed.phi) * 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 (8): * Single equations (assignments): 8 * 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 Backend phase and start with SimCode phase: time 0.0006916/0.1072, allocations: 0.7793 MB / 464.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002928/0.1075, allocations: 91.94 kB / 464.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1076, allocations: 256 / 464.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001257/0.1077, allocations: 47.91 kB / 464.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.108, allocations: 15.88 kB / 464.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002061/0.1101, allocations: 1.739 MB / 466.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000246/0.1103, allocations: 0.7002 MB / 467.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.899e-05/0.1104, allocations: 4.672 kB / 467.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001243/0.1105, allocations: 31.42 kB / 467.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1106, allocations: 0 / 467.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02125/0.1318, allocations: 2.354 MB / 469.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.287/7.419, allocations: 14.38 kB / 469.7 MB, free: 10.73 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 PowerSystems_latest_PowerSystems_Examples_Wind_Test_RotorTest.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Wind.Test.RotorTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches