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.001267/0.001267, allocations: 114.1 kB / 17.06 MB, free: 6.078 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.001201/0.001201, allocations: 191 kB / 17.99 MB, free: 5.176 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.369/1.369, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2076/0.2076, allocations: 38.04 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 59.91 kB / 457.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4025/0.4041, allocations: 58.07 MB / 0.5036 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.Test.RotorTest): time 0.003439/0.4076, allocations: 2.442 MB / 0.506 GB, free: 5.746 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004992/0.4081, allocations: 439.1 kB / 0.5064 GB, free: 5.441 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.982e-05/0.4082, allocations: 1.125 kB / 0.5064 GB, free: 5.441 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.869e-05/0.4083, allocations: 11.92 kB / 0.5064 GB, free: 5.434 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00012/0.4084, allocations: 26.5 kB / 0.5064 GB, free: 5.414 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.72e-05/0.4085, allocations: 32.45 kB / 0.5065 GB, free: 5.395 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001413/0.4086, allocations: 96.39 kB / 0.5066 GB, free: 5.352 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/0.4088, allocations: 24.22 kB / 0.5066 GB, free: 5.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001059/0.4089, allocations: 47.47 kB / 0.5066 GB, free: 5.316 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.557e-05/0.409, allocations: 45.28 kB / 0.5067 GB, free: 5.297 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.799e-05/0.409, allocations: 7.688 kB / 0.5067 GB, free: 5.297 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.946e-05/0.409, allocations: 7.938 kB / 0.5067 GB, free: 5.297 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.934e-05/0.4091, allocations: 18.66 kB / 0.5067 GB, free: 5.285 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.178e-05/0.4091, allocations: 44.03 kB / 0.5068 GB, free: 5.258 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001535/0.4093, allocations: 94.34 kB / 0.5068 GB, free: 5.223 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.4093, allocations: 4 kB / 0.5069 GB, free: 5.219 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.4093, allocations: 1.219 kB / 0.5069 GB, free: 5.219 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.99e-06/0.4093, allocations: 0 / 0.5069 GB, free: 5.219 MB / 382.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.0005712/0.4099, allocations: 414.5 kB / 0.5072 GB, free: 4.828 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.4099, allocations: 15.36 kB / 0.5073 GB, free: 4.824 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.573e-05/0.41, allocations: 37.28 kB / 0.5073 GB, free: 4.781 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.36e-05/0.41, allocations: 17.7 kB / 0.5073 GB, free: 4.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001921/0.4102, allocations: 210.8 kB / 0.5075 GB, free: 4.543 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.4102, allocations: 2.625 kB / 0.5075 GB, free: 4.543 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.916e-05/0.4103, allocations: 12.69 kB / 0.5075 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002418/0.4105, allocations: 86.41 kB / 0.5076 GB, free: 4.488 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.4105, allocations: 2.125 kB / 0.5076 GB, free: 4.488 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.4105, allocations: 0 / 0.5076 GB, free: 4.488 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.4106, allocations: 1.281 kB / 0.5076 GB, free: 4.488 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002351/0.4108, allocations: 78.22 kB / 0.5077 GB, free: 4.465 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007174/0.4115, allocations: 464.2 kB / 0.5081 GB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003185/0.4118, allocations: 94.44 kB / 0.5082 GB, free: 4.016 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001208/0.412, allocations: 40.25 kB / 0.5083 GB, free: 3.996 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.61e-05/0.412, allocations: 5.188 kB / 0.5083 GB, free: 3.992 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.648e-05/0.412, allocations: 36.31 kB / 0.5083 GB, free: 3.949 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.412, allocations: 0 / 0.5083 GB, free: 3.949 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.000443/0.4125, allocations: 140.5 kB / 0.5084 GB, free: 3.883 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.875e-05/0.4125, allocations: 53 kB / 0.5085 GB, free: 3.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.512e-05/0.4126, allocations: 135.7 kB / 0.5086 GB, free: 3.711 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.002e-05/0.4126, allocations: 26.83 kB / 0.5086 GB, free: 3.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.628e-05/0.4127, allocations: 108 kB / 0.5087 GB, free: 3.578 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.48e-05/0.4127, allocations: 25.77 kB / 0.5088 GB, free: 3.559 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.266e-05/0.4128, allocations: 20.75 kB / 0.5088 GB, free: 3.539 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.266e-05/0.4128, allocations: 320.6 kB / 0.5091 GB, free: 3.223 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.4129, allocations: 40.05 kB / 0.5091 GB, free: 3.207 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001218/0.4131, allocations: 68.34 kB / 0.5092 GB, free: 3.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002363/0.4133, allocations: 106.4 kB / 0.5093 GB, free: 3.094 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.4133, allocations: 0 / 0.5093 GB, free: 3.094 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000292/0.4136, allocations: 124.1 kB / 0.5094 GB, free: 3.035 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.4136, allocations: 4.719 kB / 0.5094 GB, free: 3.035 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.4137, allocations: 1.984 kB / 0.5094 GB, free: 3.035 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.4137, allocations: 6.375 kB / 0.5094 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001588/0.4138, allocations: 33.72 kB / 0.5095 GB, free: 3.023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.4139, allocations: 5.859 kB / 0.5095 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.414, allocations: 16.22 kB / 0.5095 GB, free: 3.012 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-06/0.414, allocations: 3.375 kB / 0.5095 GB, free: 3.012 MB / 382.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 6.548e-05/0.4141, allocations: 115.3 kB / 0.5096 GB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.295e-05/0.4141, allocations: 8.203 kB / 0.5096 GB, free: 2.891 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003147/0.4144, allocations: 129.4 kB / 0.5097 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.4144, allocations: 5.688 kB / 0.5097 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.4144, allocations: 1.125 kB / 0.5097 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.4144, allocations: 0.75 kB / 0.5097 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002205/0.4147, allocations: 213.2 kB / 0.5099 GB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.4147, allocations: 0 / 0.5099 GB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000154/0.4148, allocations: 24.12 kB / 0.51 GB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.4148, allocations: 0.7031 kB / 0.51 GB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.4149, allocations: 1.594 kB / 0.51 GB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.4149, allocations: 7.938 kB / 0.51 GB, free: 2.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.4149, allocations: 5.766 kB / 0.51 GB, free: 2.586 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004492/0.4153, allocations: 254 kB / 0.5102 GB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.065e-05/0.4154, allocations: 85.39 kB / 0.5103 GB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.305e-05/0.4154, allocations: 4.938 kB / 0.5103 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.4155, allocations: 15.27 kB / 0.5103 GB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.92e-05/0.4156, allocations: 8.625 kB / 0.5103 GB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/0.4156, allocations: 2.281 kB / 0.5103 GB, free: 2.297 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.571e-05/0.4156, allocations: 112 kB / 0.5104 GB, free: 2.211 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4157, allocations: 0 / 0.5104 GB, free: 2.211 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002484/0.4159, allocations: 17.47 kB / 0.5105 GB, free: 2.211 MB / 382.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.0005585/0.4165, allocations: 0.7941 MB / 0.5112 GB, free: 1.496 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002898/0.4168, allocations: 81.97 kB / 0.5113 GB, free: 1.477 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.4168, allocations: 0 / 0.5113 GB, free: 1.477 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001223/0.4169, allocations: 47.47 kB / 0.5114 GB, free: 1.461 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002763/0.4172, allocations: 17.41 kB / 0.5114 GB, free: 1.449 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001859/0.4191, allocations: 1.728 MB / 0.5131 GB, free: 12 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.4194, allocations: 0.7007 MB / 0.5137 GB, free: 15.31 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.41e-05/0.4195, allocations: 14.17 kB / 0.5138 GB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.598e-05/0.4196, allocations: 26.23 kB / 0.5138 GB, free: 15.29 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4196, allocations: 0 / 0.5138 GB, free: 15.29 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02328/0.4429, allocations: 2.398 MB / 0.5161 GB, free: 14.85 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.422/7.865, allocations: 20.64 kB / 0.5161 GB, free: 14.84 MB / 398.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