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.001737/0.001737, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001592/0.001592, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.386/1.386, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1731/0.1731, allocations: 38.04 MB / 330.4 MB, free: 8.824 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 62.17 kB / 399.5 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1074, allocations: 58.06 MB / 457.5 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.Test.RotorTest): time 0.004344/0.1118, allocations: 2.453 MB / 460 MB, free: 5.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007155/0.1126, allocations: 435 kB / 460.4 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.1127, allocations: 7.938 kB / 460.4 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001108/0.1128, allocations: 7.922 kB / 460.4 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001466/0.113, allocations: 27.72 kB / 460.5 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001157/0.1131, allocations: 23.97 kB / 460.5 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001455/0.1133, allocations: 103.6 kB / 460.6 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.1134, allocations: 19.97 kB / 460.6 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001294/0.1135, allocations: 47.8 kB / 460.6 MB, free: 4.926 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/0.1136, allocations: 39.83 kB / 460.7 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.949e-05/0.1137, allocations: 8 kB / 460.7 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.287e-05/0.1137, allocations: 8 kB / 460.7 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.366e-05/0.1138, allocations: 27.86 kB / 460.7 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.117e-05/0.1138, allocations: 47.72 kB / 460.8 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001491/0.114, allocations: 87.97 kB / 460.9 MB, free: 4.711 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.114, allocations: 0 / 460.9 MB, free: 4.711 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.114, allocations: 0 / 460.9 MB, free: 4.711 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.114, allocations: 4 kB / 460.9 MB, free: 4.707 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.0006441/0.1147, allocations: 411.1 kB / 461.3 MB, free: 4.258 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.1147, allocations: 15.83 kB / 461.3 MB, free: 4.242 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.229e-05/0.1148, allocations: 16.84 kB / 461.3 MB, free: 4.227 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001965/0.115, allocations: 196.1 kB / 461.5 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.115, allocations: 4.375 kB / 461.5 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.433e-05/0.115, allocations: 16.03 kB / 461.5 MB, free: 3.977 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002489/0.1153, allocations: 89.58 kB / 461.6 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.1153, allocations: 0 / 461.6 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.705e-05/0.1153, allocations: 8 kB / 461.6 MB, free: 3.875 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.1153, allocations: 3.984 kB / 461.6 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002384/0.1156, allocations: 71.95 kB / 461.7 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008204/0.1164, allocations: 457.3 kB / 462.1 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003348/0.1168, allocations: 94.66 kB / 462.2 MB, free: 3.188 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001242/0.1169, allocations: 36.84 kB / 462.3 MB, free: 3.148 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/0.1169, allocations: 7.938 kB / 462.3 MB, free: 3.141 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.1169, allocations: 34.55 kB / 462.3 MB, free: 3.098 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.117, allocations: 0 / 462.3 MB, free: 3.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004521/0.1174, allocations: 133.5 kB / 462.4 MB, free: 2.961 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.537e-05/0.1175, allocations: 55.34 kB / 462.5 MB, free: 2.895 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/0.1176, allocations: 141.8 kB / 462.6 MB, free: 2.746 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.1176, allocations: 25.7 kB / 462.6 MB, free: 2.715 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.47e-05/0.1177, allocations: 104 kB / 462.7 MB, free: 2.609 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.945e-05/0.1177, allocations: 27.64 kB / 462.8 MB, free: 2.582 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.125e-05/0.1178, allocations: 17.72 kB / 462.8 MB, free: 2.559 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.1179, allocations: 322.8 kB / 463.1 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.1181, allocations: 39.91 kB / 463.1 MB, free: 2.195 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/0.1182, allocations: 59.41 kB / 463.2 MB, free: 2.125 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002434/0.1185, allocations: 107.8 kB / 463.3 MB, free: 2.008 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1185, allocations: 4 kB / 463.3 MB, free: 2.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003184/0.1188, allocations: 121.5 kB / 463.4 MB, free: 1.879 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.1188, allocations: 8.188 kB / 463.4 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.1188, allocations: 0 / 463.4 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.1189, allocations: 3.938 kB / 463.4 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001639/0.119, allocations: 47.94 kB / 463.5 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/0.119, allocations: 0 / 463.5 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.1192, allocations: 11.91 kB / 463.5 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.466e-05/0.1192, allocations: 7.984 kB / 463.5 MB, free: 1.801 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.996e-05/0.1193, allocations: 125.7 kB / 463.6 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.233e-05/0.1193, allocations: 7.906 kB / 463.6 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003292/0.1197, allocations: 126.3 kB / 463.8 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.1197, allocations: 7.938 kB / 463.8 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.1197, allocations: 0 / 463.8 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1197, allocations: 0 / 463.8 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002661/0.12, allocations: 209.6 kB / 464 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.12, allocations: 0 / 464 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001519/0.1201, allocations: 23.98 kB / 464 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.1201, allocations: 0 / 464 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.1202, allocations: 0 / 464 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.1202, allocations: 3.938 kB / 464 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1202, allocations: 4 kB / 464 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004513/0.1206, allocations: 251.3 kB / 464.2 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.904e-05/0.1207, allocations: 96.94 kB / 464.3 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.916e-05/0.1207, allocations: 0 / 464.3 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001208/0.1208, allocations: 7.938 kB / 464.4 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.347e-05/0.1209, allocations: 12.05 kB / 464.4 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.1209, allocations: 7.984 kB / 464.4 MB, free: 0.832 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.952e-05/0.121, allocations: 110 kB / 464.5 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.121, allocations: 0 / 464.5 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000249/0.1213, allocations: 20 kB / 464.5 MB, free: 0.707 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.959e-05/0.1214, allocations: 95.25 kB / 464.6 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003313/0.1217, allocations: 87.94 kB / 464.7 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1217, allocations: 0 / 464.7 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001367/0.1219, allocations: 43.91 kB / 464.7 MB, free: 488 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.1222, allocations: 12 kB / 464.7 MB, free: 476 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006777/0.1229, allocations: 350.2 kB / 465.1 MB, free: 96 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.1232, allocations: 0.6924 MB / 465.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.044e-05/0.1233, allocations: 19.42 kB / 465.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1233, allocations: 3.938 kB / 465.8 MB, free: 15.35 MB / 350.1 MB Notification: Performance of Templates: time 0.003294/0.1266, allocations: 1.271 MB / 467.1 MB, free: 14.09 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/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