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: translateModel(PowerSystems.Examples.Wind.Test.RotorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|rotor.flange.tau|rotor.lambda|rotor.lambdai",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest") translateModel(PowerSystems.Examples.Wind.Test.RotorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|rotor.flange.tau|rotor.lambda|rotor.lambdai",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.00114/0.001139, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.332/1.332, allocations: 222.9 MB / 241.5 MB, free: 15.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1739/0.1739, allocations: 38.04 MB / 329.7 MB, free: 8.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 61.19 kB / 398.8 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1019, allocations: 58.07 MB / 456.9 MB, free: 8.082 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.Test.RotorTest): time 0.003575/0.1055, allocations: 2.438 MB / 459.3 MB, free: 5.621 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005415/0.1061, allocations: 438.9 kB / 459.7 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.376e-05/0.1062, allocations: 0 / 459.7 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.651e-05/0.1063, allocations: 15.86 kB / 459.8 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001238/0.1064, allocations: 19.8 kB / 459.8 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.441e-05/0.1065, allocations: 35.88 kB / 459.8 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000142/0.1067, allocations: 103.6 kB / 459.9 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.1068, allocations: 19.98 kB / 459.9 MB, free: 5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.1069, allocations: 39.86 kB / 460 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.149e-05/0.107, allocations: 47.81 kB / 460 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.723e-05/0.107, allocations: 8 kB / 460 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.933e-05/0.107, allocations: 8 kB / 460 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.785e-05/0.1071, allocations: 19.92 kB / 460 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.018e-05/0.1071, allocations: 51.72 kB / 460.1 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001523/0.1073, allocations: 87.91 kB / 460.2 MB, free: 4.742 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.1073, allocations: 4 kB / 460.2 MB, free: 4.738 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.1073, allocations: 0 / 460.2 MB, free: 4.738 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.1073, allocations: 0 / 460.2 MB, free: 4.738 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.0006836/0.108, allocations: 415.1 kB / 460.6 MB, free: 4.285 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.1081, allocations: 15.89 kB / 460.6 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.259e-05/0.1081, allocations: 12.78 kB / 460.6 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001938/0.1083, allocations: 184.2 kB / 460.8 MB, free: 4.039 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.327e-06/0.1083, allocations: 4.375 kB / 460.8 MB, free: 4.035 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.416e-05/0.1084, allocations: 20.03 kB / 460.8 MB, free: 4.016 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002375/0.1086, allocations: 89.58 kB / 460.9 MB, free: 3.922 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.1086, allocations: 3.938 kB / 460.9 MB, free: 3.918 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.1087, allocations: 4 kB / 460.9 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.1087, allocations: 4 kB / 460.9 MB, free: 3.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000222/0.1089, allocations: 71.94 kB / 461 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007941/0.1097, allocations: 465.3 kB / 461.4 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003108/0.11, allocations: 98.59 kB / 461.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001146/0.1101, allocations: 32.84 kB / 461.6 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.739e-05/0.1102, allocations: 4 kB / 461.6 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.162e-05/0.1102, allocations: 30.56 kB / 461.6 MB, free: 3.137 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.1102, allocations: 0 / 461.6 MB, free: 3.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004347/0.1106, allocations: 145.6 kB / 461.8 MB, free: 2.988 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.259e-05/0.1107, allocations: 55.34 kB / 461.8 MB, free: 2.922 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.1108, allocations: 140.4 kB / 461.9 MB, free: 2.777 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.1108, allocations: 33.7 kB / 462 MB, free: 2.738 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.357e-05/0.1109, allocations: 99.95 kB / 462.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.587e-05/0.1109, allocations: 23.64 kB / 462.1 MB, free: 2.613 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.369e-05/0.111, allocations: 21.72 kB / 462.1 MB, free: 2.586 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.1111, allocations: 326.8 kB / 462.4 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.1112, allocations: 31.97 kB / 462.5 MB, free: 2.227 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.1113, allocations: 59.41 kB / 462.5 MB, free: 2.156 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002283/0.1116, allocations: 107.6 kB / 462.6 MB, free: 2.039 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.1116, allocations: 0 / 462.6 MB, free: 2.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002785/0.1118, allocations: 129.4 kB / 462.8 MB, free: 1.906 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.1119, allocations: 8 kB / 462.8 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.1119, allocations: 0 / 462.8 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.1119, allocations: 4.094 kB / 462.8 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/0.1121, allocations: 31.91 kB / 462.8 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.1121, allocations: 4 kB / 462.8 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.708e-05/0.1122, allocations: 7.906 kB / 462.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.1122, allocations: 7.984 kB / 462.8 MB, free: 1.844 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 8.455e-05/0.1123, allocations: 125.7 kB / 462.9 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.195e-05/0.1123, allocations: 15.83 kB / 463 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003081/0.1126, allocations: 126.3 kB / 463.1 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.1126, allocations: 7.938 kB / 463.1 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.1127, allocations: 0 / 463.1 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1127, allocations: 0 / 463.1 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002374/0.1129, allocations: 205.6 kB / 463.3 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1129, allocations: 0 / 463.3 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001422/0.1131, allocations: 23.98 kB / 463.3 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1131, allocations: 0 / 463.3 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.1131, allocations: 192 / 463.3 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.531e-06/0.1131, allocations: 7.938 kB / 463.3 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1131, allocations: 7.875 kB / 463.3 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000415/0.1135, allocations: 255.4 kB / 463.6 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.652e-05/0.1136, allocations: 96.94 kB / 463.7 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.856e-05/0.1136, allocations: 0 / 463.7 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.1137, allocations: 12 kB / 463.7 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.48e-05/0.1138, allocations: 11.98 kB / 463.7 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.1138, allocations: 0 / 463.7 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.206e-05/0.1139, allocations: 110.3 kB / 463.8 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1139, allocations: 0 / 463.8 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002287/0.1141, allocations: 16 kB / 463.8 MB, free: 0.7422 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 9.907e-05/0.1142, allocations: 103.2 kB / 463.9 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002863/0.1145, allocations: 83.89 kB / 464 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1145, allocations: 0 / 464 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001126/0.1146, allocations: 43.97 kB / 464 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.1149, allocations: 8 kB / 464.1 MB, free: 0.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006749/0.1156, allocations: 324.5 kB / 464.4 MB, free: 164 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003008/0.1159, allocations: 0.6963 MB / 465.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.593e-05/0.116, allocations: 12.66 kB / 465.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.317e-05/0.1161, allocations: 11.44 kB / 465.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1161, allocations: 0 / 465.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of Templates: time 0.003648/0.1197, allocations: 1.035 MB / 466.1 MB, free: 14.39 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Wind.Test.RotorTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches