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.001352/0.001352, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.00135/0.00135, allocations: 200 kB / 18.01 MB, free: 5.055 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.434/1.434, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.177/0.177, allocations: 38.04 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002327/0.002327, allocations: 59.91 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.424/0.4263, allocations: 58.05 MB / 0.5036 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.Test.RotorTest): time 0.004023/0.4304, allocations: 2.451 MB / 0.506 GB, free: 5.727 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006511/0.4311, allocations: 435.8 kB / 0.5064 GB, free: 5.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.628e-05/0.4312, allocations: 1.062 kB / 0.5064 GB, free: 5.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001286/0.4313, allocations: 15.56 kB / 0.5064 GB, free: 5.418 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001629/0.4315, allocations: 23.34 kB / 0.5065 GB, free: 5.402 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001242/0.4317, allocations: 32.05 kB / 0.5065 GB, free: 5.383 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000179/0.4319, allocations: 100.2 kB / 0.5066 GB, free: 5.336 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.432, allocations: 18.27 kB / 0.5066 GB, free: 5.332 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001401/0.4321, allocations: 43.14 kB / 0.5066 GB, free: 5.312 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000108/0.4323, allocations: 49.83 kB / 0.5067 GB, free: 5.289 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.766e-05/0.4323, allocations: 11.36 kB / 0.5067 GB, free: 5.285 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.099e-05/0.4323, allocations: 11.84 kB / 0.5067 GB, free: 5.281 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.431e-05/0.4324, allocations: 18.23 kB / 0.5067 GB, free: 5.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.231e-05/0.4324, allocations: 48.86 kB / 0.5068 GB, free: 5.238 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001941/0.4326, allocations: 92.64 kB / 0.5069 GB, free: 5.203 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.4327, allocations: 0 / 0.5069 GB, free: 5.203 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4327, allocations: 0 / 0.5069 GB, free: 5.203 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.4327, allocations: 1.984 kB / 0.5069 GB, free: 5.203 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.0006913/0.4334, allocations: 416.2 kB / 0.5073 GB, free: 4.809 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.4334, allocations: 9.469 kB / 0.5073 GB, free: 4.809 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.493e-05/0.4335, allocations: 38.41 kB / 0.5073 GB, free: 4.766 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.787e-05/0.4335, allocations: 15.09 kB / 0.5073 GB, free: 4.758 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000186/0.4337, allocations: 193.4 kB / 0.5075 GB, free: 4.543 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.4337, allocations: 3.375 kB / 0.5075 GB, free: 4.543 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.309e-05/0.4338, allocations: 12.53 kB / 0.5075 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002545/0.434, allocations: 95.09 kB / 0.5076 GB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.434, allocations: 0 / 0.5076 GB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.453e-05/0.4341, allocations: 2 kB / 0.5076 GB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.4341, allocations: 1.156 kB / 0.5076 GB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002399/0.4343, allocations: 72.92 kB / 0.5077 GB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007514/0.4351, allocations: 472 kB / 0.5081 GB, free: 4.055 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003357/0.4354, allocations: 89.59 kB / 0.5082 GB, free: 4.012 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000119/0.4356, allocations: 41.11 kB / 0.5083 GB, free: 3.992 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.219e-05/0.4356, allocations: 4.75 kB / 0.5083 GB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.443e-05/0.4356, allocations: 36.53 kB / 0.5083 GB, free: 3.945 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.4356, allocations: 0 / 0.5083 GB, free: 3.945 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004445/0.4361, allocations: 139.9 kB / 0.5084 GB, free: 3.879 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.604e-05/0.4361, allocations: 56.42 kB / 0.5085 GB, free: 3.812 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.4362, allocations: 141.3 kB / 0.5086 GB, free: 3.699 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.134e-05/0.4362, allocations: 25.7 kB / 0.5086 GB, free: 3.668 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.447e-05/0.4363, allocations: 112.6 kB / 0.5088 GB, free: 3.562 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.227e-05/0.4363, allocations: 24.64 kB / 0.5088 GB, free: 3.543 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.471e-05/0.4364, allocations: 21.58 kB / 0.5088 GB, free: 3.523 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.391e-05/0.4364, allocations: 320.4 kB / 0.5091 GB, free: 3.207 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.4366, allocations: 32.09 kB / 0.5091 GB, free: 3.199 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/0.4367, allocations: 69.08 kB / 0.5092 GB, free: 3.148 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002198/0.4369, allocations: 93.69 kB / 0.5093 GB, free: 3.094 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4369, allocations: 192 / 0.5093 GB, free: 3.094 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002864/0.4372, allocations: 135.7 kB / 0.5094 GB, free: 3.023 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.4372, allocations: 9.172 kB / 0.5094 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.4373, allocations: 1.125 kB / 0.5094 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.4373, allocations: 7.078 kB / 0.5094 GB, free: 3.016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001808/0.4375, allocations: 29.86 kB / 0.5095 GB, free: 3.012 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.4375, allocations: 1.656 kB / 0.5095 GB, free: 3.012 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.4376, allocations: 8.828 kB / 0.5095 GB, free: 3.012 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.4376, allocations: 3.562 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.196e-05/0.4377, allocations: 121.9 kB / 0.5096 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.123e-05/0.4377, allocations: 8.438 kB / 0.5096 GB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003083/0.438, allocations: 126.6 kB / 0.5097 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.438, allocations: 5.797 kB / 0.5097 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.438, allocations: 0 / 0.5097 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.4381, allocations: 0.7031 kB / 0.5097 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002281/0.4383, allocations: 209.4 kB / 0.5099 GB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.4383, allocations: 4 kB / 0.5099 GB, free: 2.594 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001576/0.4385, allocations: 27.67 kB / 0.51 GB, free: 2.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.4385, allocations: 1.672 kB / 0.51 GB, free: 2.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.4385, allocations: 1.312 kB / 0.51 GB, free: 2.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.4385, allocations: 7.938 kB / 0.51 GB, free: 2.582 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4385, allocations: 0.7969 kB / 0.51 GB, free: 2.582 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004103/0.4389, allocations: 258.3 kB / 0.5102 GB, free: 2.402 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.133e-05/0.439, allocations: 89.78 kB / 0.5103 GB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.306e-05/0.439, allocations: 6.047 kB / 0.5103 GB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001235/0.4391, allocations: 11.44 kB / 0.5103 GB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.05e-05/0.4392, allocations: 5 kB / 0.5103 GB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-06/0.4392, allocations: 1.156 kB / 0.5103 GB, free: 2.293 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.977e-05/0.4393, allocations: 113.2 kB / 0.5104 GB, free: 2.207 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.92e-07/0.4393, allocations: 0 / 0.5104 GB, free: 2.207 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002504/0.4395, allocations: 24.75 kB / 0.5105 GB, free: 2.199 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.000566/0.4401, allocations: 0.7788 MB / 0.5112 GB, free: 1.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002876/0.4404, allocations: 85.86 kB / 0.5113 GB, free: 1.477 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4404, allocations: 0 / 0.5113 GB, free: 1.477 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001206/0.4405, allocations: 46.66 kB / 0.5113 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.0002783/0.4408, allocations: 18.7 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.001914/0.4428, allocations: 1.733 MB / 0.5131 GB, free: 8 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003032/0.4431, allocations: 0.7012 MB / 0.5137 GB, free: 15.31 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.899e-05/0.4431, allocations: 10.33 kB / 0.5137 GB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.815e-05/0.4432, allocations: 26.17 kB / 0.5138 GB, free: 15.29 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4432, allocations: 0 / 0.5138 GB, free: 15.29 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02266/0.4659, allocations: 2.443 MB / 0.5162 GB, free: 14.83 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.55/8.016, allocations: 21.03 kB / 0.5162 GB, free: 14.81 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