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.00148/0.00148, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.001646/0.001646, allocations: 196 kB / 18 MB, free: 5.105 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.382/1.382, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1743/0.1743, allocations: 38.04 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 71.89 kB / 457.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3689/0.3701, allocations: 58.05 MB / 0.5036 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.Test.RotorTest): time 0.004391/0.3746, allocations: 2.452 MB / 0.506 GB, free: 5.785 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000717/0.3753, allocations: 436.3 kB / 0.5064 GB, free: 5.488 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.428e-05/0.3754, allocations: 1.406 kB / 0.5064 GB, free: 5.488 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000117/0.3756, allocations: 15.72 kB / 0.5064 GB, free: 5.477 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001446/0.3757, allocations: 30.78 kB / 0.5065 GB, free: 5.453 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001155/0.3758, allocations: 28.33 kB / 0.5065 GB, free: 5.438 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000175/0.376, allocations: 95.44 kB / 0.5066 GB, free: 5.395 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001284/0.3762, allocations: 16.92 kB / 0.5066 GB, free: 5.391 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001177/0.3763, allocations: 48.22 kB / 0.5066 GB, free: 5.367 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001016/0.3764, allocations: 49.64 kB / 0.5067 GB, free: 5.344 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.054e-05/0.3764, allocations: 6.844 kB / 0.5067 GB, free: 5.344 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.26e-05/0.3764, allocations: 8.5 kB / 0.5067 GB, free: 5.344 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.833e-05/0.3765, allocations: 22.42 kB / 0.5067 GB, free: 5.328 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.262e-05/0.3765, allocations: 39.44 kB / 0.5068 GB, free: 5.305 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001749/0.3767, allocations: 96.56 kB / 0.5069 GB, free: 5.266 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3767, allocations: 1.156 kB / 0.5069 GB, free: 5.266 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3767, allocations: 0.6094 kB / 0.5069 GB, free: 5.266 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.93e-06/0.3767, allocations: 0 / 0.5069 GB, free: 5.266 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.000655/0.3774, allocations: 418.9 kB / 0.5073 GB, free: 4.871 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.3775, allocations: 13.98 kB / 0.5073 GB, free: 4.867 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.038e-05/0.3775, allocations: 38.77 kB / 0.5073 GB, free: 4.824 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.609e-05/0.3776, allocations: 9.719 kB / 0.5073 GB, free: 4.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002128/0.3778, allocations: 198.2 kB / 0.5075 GB, free: 4.602 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.3778, allocations: 7.656 kB / 0.5075 GB, free: 4.598 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.812e-05/0.3778, allocations: 8.984 kB / 0.5075 GB, free: 4.594 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002544/0.3781, allocations: 90.5 kB / 0.5076 GB, free: 4.543 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.3781, allocations: 4 kB / 0.5076 GB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.3781, allocations: 1.844 kB / 0.5076 GB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.3781, allocations: 1 kB / 0.5076 GB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002525/0.3784, allocations: 72.27 kB / 0.5077 GB, free: 4.523 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000843/0.3792, allocations: 466.1 kB / 0.5081 GB, free: 4.121 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000346/0.3796, allocations: 91.92 kB / 0.5082 GB, free: 4.074 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/0.3798, allocations: 38.7 kB / 0.5083 GB, free: 4.059 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.3798, allocations: 7.922 kB / 0.5083 GB, free: 4.051 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.089e-05/0.3798, allocations: 40.31 kB / 0.5083 GB, free: 4.004 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.3798, allocations: 0 / 0.5083 GB, free: 4.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005116/0.3803, allocations: 144.2 kB / 0.5084 GB, free: 3.934 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.372e-05/0.3804, allocations: 53.11 kB / 0.5085 GB, free: 3.871 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.3805, allocations: 140.1 kB / 0.5086 GB, free: 3.758 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.076e-05/0.3805, allocations: 26.83 kB / 0.5086 GB, free: 3.727 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.097e-05/0.3806, allocations: 107.4 kB / 0.5087 GB, free: 3.625 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.249e-05/0.3806, allocations: 21.94 kB / 0.5088 GB, free: 3.609 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.389e-05/0.3807, allocations: 28.92 kB / 0.5088 GB, free: 3.582 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.297e-05/0.3807, allocations: 320.5 kB / 0.5091 GB, free: 3.266 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001195/0.3808, allocations: 36.36 kB / 0.5091 GB, free: 3.254 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.381, allocations: 60.16 kB / 0.5092 GB, free: 3.211 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002313/0.3812, allocations: 98.91 kB / 0.5093 GB, free: 3.152 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.3812, allocations: 0 / 0.5093 GB, free: 3.152 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003065/0.3815, allocations: 135 kB / 0.5094 GB, free: 3.082 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.3816, allocations: 9.875 kB / 0.5094 GB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.3816, allocations: 1.125 kB / 0.5094 GB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.3816, allocations: 6.953 kB / 0.5094 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.3818, allocations: 25.22 kB / 0.5095 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.3818, allocations: 6.25 kB / 0.5095 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.3819, allocations: 12.91 kB / 0.5095 GB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.3819, allocations: 2.312 kB / 0.5095 GB, free: 3.066 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.078e-05/0.382, allocations: 114.9 kB / 0.5096 GB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.145e-05/0.382, allocations: 13.58 kB / 0.5096 GB, free: 2.941 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003299/0.3823, allocations: 124.7 kB / 0.5097 GB, free: 2.871 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.3823, allocations: 9.312 kB / 0.5097 GB, free: 2.863 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.3824, allocations: 1.844 kB / 0.5097 GB, free: 2.863 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.3824, allocations: 0 / 0.5097 GB, free: 2.863 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002394/0.3826, allocations: 212.8 kB / 0.5099 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3826, allocations: 0.7031 kB / 0.5099 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001568/0.3828, allocations: 23.86 kB / 0.51 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.3828, allocations: 5.75 kB / 0.51 GB, free: 2.645 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.3828, allocations: 0 / 0.51 GB, free: 2.645 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.3828, allocations: 5.312 kB / 0.51 GB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.3828, allocations: 0.75 kB / 0.51 GB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004654/0.3833, allocations: 253.9 kB / 0.5102 GB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.448e-05/0.3833, allocations: 93.42 kB / 0.5103 GB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.36e-05/0.3834, allocations: 5.797 kB / 0.5103 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.3835, allocations: 14.47 kB / 0.5103 GB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.273e-05/0.3835, allocations: 4.531 kB / 0.5103 GB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/0.3836, allocations: 2.219 kB / 0.5103 GB, free: 2.348 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.417e-05/0.3836, allocations: 108.7 kB / 0.5104 GB, free: 2.266 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3836, allocations: 0 / 0.5104 GB, free: 2.266 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002474/0.3839, allocations: 21.78 kB / 0.5104 GB, free: 2.262 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.0007119/0.3846, allocations: 0.7883 MB / 0.5112 GB, free: 1.555 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004196/0.385, allocations: 80.36 kB / 0.5113 GB, free: 1.535 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3851, allocations: 5.406 kB / 0.5113 GB, free: 1.531 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002177/0.3853, allocations: 43.97 kB / 0.5113 GB, free: 1.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004714/0.3858, allocations: 15.67 kB / 0.5114 GB, free: 1.512 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003015/0.3888, allocations: 1.743 MB / 0.5131 GB, free: 64 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005423/0.3894, allocations: 0.7003 MB / 0.5137 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.268e-05/0.3895, allocations: 13.02 kB / 0.5138 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.3896, allocations: 26.88 kB / 0.5138 GB, free: 15.34 MB / 398.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3896, allocations: 0 / 0.5138 GB, free: 15.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03021/0.4198, allocations: 2.436 MB / 0.5162 GB, free: 14.89 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.593/8.013, allocations: 17.14 kB / 0.5162 GB, free: 14.88 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Wind_Test_RotorTest_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 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.mat","/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) "" Variables in the reference:Time,rotor.flange.tau,rotor.lambda,rotor.lambdai Variables in the result:constantSpeed.flange.phi,constantSpeed.flange.tau,constantSpeed.phi,constantSpeed.useSupport,constantSpeed.w,constantSpeed.w_fixed,der(constantSpeed.phi),ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,rotor.A,rotor.Cp,rotor.P,rotor.P_nom,rotor.R,rotor.beta,rotor.c1,rotor.c2,rotor.c3,rotor.c4,rotor.c5,rotor.c6,rotor.flange.phi,rotor.flange.tau,rotor.lambda,rotor.lambdai,rotor.rho,rotor.v,rotor.w,time