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.001035/0.001035, allocations: 108.2 kB / 16.51 MB, free: 6.707 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.0009942/0.0009942, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.366/1.366, allocations: 222.9 MB / 241.1 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1793/0.1793, allocations: 38.04 MB / 329.3 MB, free: 9.094 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 70.16 kB / 398.1 MB, free: 34.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1211, allocations: 58.06 MB / 456.2 MB, free: 8.562 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.Test.RotorTest): time 0.004014/0.1252, allocations: 2.487 MB / 458.6 MB, free: 6.051 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006085/0.1258, allocations: 423 kB / 459.1 MB, free: 5.637 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.963e-05/0.1259, allocations: 0 / 459.1 MB, free: 5.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.869e-05/0.126, allocations: 11.92 kB / 459.1 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001187/0.1261, allocations: 23.78 kB / 459.1 MB, free: 5.602 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.967e-05/0.1262, allocations: 23.97 kB / 459.1 MB, free: 5.578 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001288/0.1263, allocations: 91.59 kB / 459.2 MB, free: 5.488 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.1265, allocations: 19.97 kB / 459.2 MB, free: 5.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001089/0.1266, allocations: 39.86 kB / 459.3 MB, free: 5.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.055e-05/0.1267, allocations: 47.77 kB / 459.3 MB, free: 5.383 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.322e-05/0.1267, allocations: 4 kB / 459.3 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.249e-05/0.1267, allocations: 11.94 kB / 459.3 MB, free: 5.367 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.624e-05/0.1268, allocations: 11.92 kB / 459.3 MB, free: 5.355 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.588e-05/0.1268, allocations: 47.73 kB / 459.4 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001269/0.127, allocations: 87.89 kB / 459.5 MB, free: 5.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.127, allocations: 0 / 459.5 MB, free: 5.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.127, allocations: 4 kB / 459.5 MB, free: 5.219 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.127, allocations: 0 / 459.5 MB, free: 5.219 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.0007286/0.1277, allocations: 411.2 kB / 459.9 MB, free: 4.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.1278, allocations: 8.031 kB / 459.9 MB, free: 4.762 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.521e-05/0.1278, allocations: 12.83 kB / 459.9 MB, free: 4.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001973/0.128, allocations: 188.2 kB / 460.1 MB, free: 4.527 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.128, allocations: 8.375 kB / 460.1 MB, free: 4.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.936e-05/0.1281, allocations: 12.03 kB / 460.1 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002535/0.1283, allocations: 101.5 kB / 460.2 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.1284, allocations: 4 kB / 460.2 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.1284, allocations: 4 kB / 460.2 MB, free: 4.395 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.1284, allocations: 0 / 460.2 MB, free: 4.395 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002315/0.1286, allocations: 71.94 kB / 460.3 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008039/0.1294, allocations: 465.4 kB / 460.7 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003216/0.1298, allocations: 90.61 kB / 460.8 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001191/0.1299, allocations: 40.83 kB / 460.9 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.735e-05/0.1299, allocations: 0 / 460.9 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.697e-05/0.13, allocations: 34.56 kB / 460.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 9.22e-07/0.13, allocations: 0 / 460.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004426/0.1304, allocations: 137.5 kB / 461 MB, free: 3.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.353e-05/0.1305, allocations: 55.34 kB / 461.1 MB, free: 3.414 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.1306, allocations: 144.4 kB / 461.2 MB, free: 3.266 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.1306, allocations: 25.7 kB / 461.2 MB, free: 3.234 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.507e-05/0.1307, allocations: 107.9 kB / 461.4 MB, free: 3.125 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.608e-05/0.1307, allocations: 27.64 kB / 461.4 MB, free: 3.098 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.895e-05/0.1308, allocations: 21.72 kB / 461.4 MB, free: 3.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1309, allocations: 322.8 kB / 461.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.131, allocations: 35.91 kB / 461.8 MB, free: 2.711 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.1312, allocations: 55.42 kB / 461.8 MB, free: 2.645 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002421/0.1314, allocations: 103.5 kB / 461.9 MB, free: 2.531 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1314, allocations: 0 / 461.9 MB, free: 2.531 MB / 334.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002971/0.1317, allocations: 137.9 kB / 462 MB, free: 2.391 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.1317, allocations: 8 kB / 462 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.1318, allocations: 4.016 kB / 462.1 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.1318, allocations: 0 / 462.1 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001691/0.132, allocations: 31.92 kB / 462.1 MB, free: 2.348 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.132, allocations: 3.984 kB / 462.1 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/0.1321, allocations: 15.89 kB / 462.1 MB, free: 2.328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.1321, allocations: 4 kB / 462.1 MB, free: 2.324 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 9.561e-05/0.1322, allocations: 125.8 kB / 462.2 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.171e-05/0.1322, allocations: 7.906 kB / 462.2 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003179/0.1326, allocations: 122.3 kB / 462.4 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.1326, allocations: 7.938 kB / 462.4 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.1326, allocations: 0 / 462.4 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1326, allocations: 3.984 kB / 462.4 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002449/0.1329, allocations: 201.6 kB / 462.6 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1329, allocations: 4 kB / 462.6 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001533/0.133, allocations: 27.97 kB / 462.6 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.133, allocations: 3.938 kB / 462.6 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.1331, allocations: 4 kB / 462.6 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.1331, allocations: 3.938 kB / 462.6 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1331, allocations: 0 / 462.6 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004239/0.1335, allocations: 251.4 kB / 462.9 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.665e-05/0.1336, allocations: 88.95 kB / 462.9 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.1336, allocations: 0 / 462.9 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001248/0.1337, allocations: 15.92 kB / 463 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.586e-05/0.1338, allocations: 11.98 kB / 463 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.1338, allocations: 0 / 463 MB, free: 1.359 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.755e-05/0.1338, allocations: 106.4 kB / 463.1 MB, free: 1.258 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1339, allocations: 0 / 463.1 MB, free: 1.258 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002447/0.1341, allocations: 24 kB / 463.1 MB, free: 1.234 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.792e-05/0.1342, allocations: 99.25 kB / 463.2 MB, free: 1.129 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002766/0.1345, allocations: 79.94 kB / 463.3 MB, free: 1.051 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1345, allocations: 7.875 kB / 463.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001161/0.1346, allocations: 47.95 kB / 463.3 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003289/0.135, allocations: 16.12 kB / 463.3 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006512/0.1356, allocations: 341.8 kB / 463.7 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002698/0.1359, allocations: 0.7043 MB / 464.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.082e-05/0.136, allocations: 8.609 kB / 464.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.409e-05/0.136, allocations: 15.42 kB / 464.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.136, allocations: 0 / 464.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of Templates: time 0.003197/0.1392, allocations: 0.9306 MB / 465.3 MB, free: 14.94 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