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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 214.4 kB / 23.73 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.464/1.464, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1888/0.1888, allocations: 38.55 MB / 352.5 MB, free: 12.3 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00245/0.00245, allocations: 63.91 kB / 492.5 MB, free: 4.691 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3957/0.3981, allocations: 62.47 MB / 0.5419 GB, free: 244 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.Test.RotorTest): time 0.004078/0.4022, allocations: 2.531 MB / 0.5444 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006956/0.4029, allocations: 430.4 kB / 0.5448 GB, free: 13.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.785e-05/0.403, allocations: 1.281 kB / 0.5448 GB, free: 13.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001077/0.4031, allocations: 11.86 kB / 0.5448 GB, free: 13.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001334/0.4032, allocations: 31.73 kB / 0.5449 GB, free: 13.91 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001066/0.4033, allocations: 23.94 kB / 0.5449 GB, free: 13.89 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001661/0.4035, allocations: 99.61 kB / 0.545 GB, free: 13.83 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.4036, allocations: 18.2 kB / 0.545 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001745/0.4038, allocations: 49.22 kB / 0.545 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.899e-05/0.4039, allocations: 42.08 kB / 0.5451 GB, free: 13.76 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.96e-05/0.4039, allocations: 6.375 kB / 0.5451 GB, free: 13.76 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.089e-05/0.4039, allocations: 8.969 kB / 0.5451 GB, free: 13.76 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.643e-05/0.404, allocations: 17.77 kB / 0.5451 GB, free: 13.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.923e-05/0.404, allocations: 35.92 kB / 0.5451 GB, free: 13.72 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001673/0.4042, allocations: 98 kB / 0.5452 GB, free: 13.65 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.4042, allocations: 3.938 kB / 0.5452 GB, free: 13.65 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4042, allocations: 0 / 0.5452 GB, free: 13.65 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.4042, allocations: 7.938 kB / 0.5452 GB, free: 13.64 MB / 398.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.0006637/0.4049, allocations: 335.8 kB / 0.5456 GB, free: 13.33 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.4049, allocations: 13.58 kB / 0.5456 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.048e-05/0.4049, allocations: 37.5 kB / 0.5456 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.394e-05/0.405, allocations: 12.97 kB / 0.5456 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002421/0.4052, allocations: 134.6 kB / 0.5458 GB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.4052, allocations: 8.5 kB / 0.5458 GB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.538e-05/0.4053, allocations: 12.06 kB / 0.5458 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002517/0.4055, allocations: 90.52 kB / 0.5459 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.4055, allocations: 3.938 kB / 0.5459 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.4055, allocations: 1.375 kB / 0.5459 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.4055, allocations: 9.297 kB / 0.5459 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002466/0.4058, allocations: 66.45 kB / 0.5459 GB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008829/0.4067, allocations: 392.1 kB / 0.5463 GB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003415/0.407, allocations: 87.67 kB / 0.5464 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001262/0.4071, allocations: 37.95 kB / 0.5464 GB, free: 12.56 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.987e-05/0.4072, allocations: 5.234 kB / 0.5464 GB, free: 12.56 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.895e-05/0.4072, allocations: 31.69 kB / 0.5465 GB, free: 12.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.4072, allocations: 1 kB / 0.5465 GB, free: 12.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004779/0.4077, allocations: 144.9 kB / 0.5466 GB, free: 12.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.657e-05/0.4077, allocations: 52.5 kB / 0.5467 GB, free: 12.37 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001658/0.4079, allocations: 153.3 kB / 0.5468 GB, free: 12.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.139e-05/0.4079, allocations: 25.7 kB / 0.5468 GB, free: 12.2 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.875e-05/0.408, allocations: 100.6 kB / 0.5469 GB, free: 12.11 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.516e-05/0.4081, allocations: 31.22 kB / 0.547 GB, free: 12.08 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.29e-05/0.4081, allocations: 20.66 kB / 0.547 GB, free: 12.06 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.4083, allocations: 325.1 kB / 0.5473 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.4084, allocations: 29.8 kB / 0.5473 GB, free: 11.72 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001447/0.4085, allocations: 61.31 kB / 0.5474 GB, free: 11.67 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002554/0.4088, allocations: 100.5 kB / 0.5475 GB, free: 11.6 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.4088, allocations: 1.375 kB / 0.5475 GB, free: 11.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000341/0.4091, allocations: 143.8 kB / 0.5476 GB, free: 11.51 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.4092, allocations: 5.906 kB / 0.5476 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.4092, allocations: 1.219 kB / 0.5476 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/0.4092, allocations: 9.375 kB / 0.5476 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001587/0.4094, allocations: 29.38 kB / 0.5477 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.4094, allocations: 1.469 kB / 0.5477 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.4095, allocations: 18.28 kB / 0.5477 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.4095, allocations: 6.25 kB / 0.5477 GB, free: 11.48 MB / 398.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 0.0001271/0.4096, allocations: 122.5 kB / 0.5478 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.264e-05/0.4096, allocations: 8.609 kB / 0.5478 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000361/0.41, allocations: 121.4 kB / 0.5479 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.236e-06/0.41, allocations: 5.156 kB / 0.5479 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.41, allocations: 1.469 kB / 0.5479 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.41, allocations: 0 / 0.5479 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002937/0.4103, allocations: 168.7 kB / 0.5481 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.4103, allocations: 0 / 0.5481 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001543/0.4105, allocations: 27.92 kB / 0.5481 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.4105, allocations: 4 kB / 0.5481 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.4105, allocations: 5.375 kB / 0.5481 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.4105, allocations: 7.875 kB / 0.5481 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.247e-06/0.4105, allocations: 5.359 kB / 0.5481 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005064/0.411, allocations: 246.6 kB / 0.5484 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.687e-05/0.411, allocations: 15.12 kB / 0.5484 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.53e-05/0.4111, allocations: 5 kB / 0.5484 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001252/0.4112, allocations: 16.36 kB / 0.5484 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.077e-05/0.4112, allocations: 2.188 kB / 0.5484 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.4112, allocations: 2.375 kB / 0.5484 GB, free: 10.83 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.145e-05/0.4113, allocations: 110.6 kB / 0.5485 GB, free: 10.74 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4113, allocations: 0 / 0.5485 GB, free: 10.74 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002407/0.4115, allocations: 22.16 kB / 0.5485 GB, free: 10.74 MB / 398.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.0007593/0.4123, allocations: 0.7826 MB / 0.5493 GB, free: 10.01 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002867/0.4126, allocations: 90.69 kB / 0.5494 GB, free: 9.969 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4126, allocations: 0 / 0.5494 GB, free: 9.969 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.4127, allocations: 42.78 kB / 0.5494 GB, free: 9.949 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002861/0.413, allocations: 12.16 kB / 0.5494 GB, free: 9.941 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002401/0.4154, allocations: 1.741 MB / 0.5511 GB, free: 8.41 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.538e-05/0.4155, allocations: 79.98 kB / 0.5512 GB, free: 8.332 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.361e-05/0.4156, allocations: 12.25 kB / 0.5512 GB, free: 8.324 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.479e-05/0.4156, allocations: 28.12 kB / 0.5513 GB, free: 8.301 MB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4156, allocations: 0 / 0.5513 GB, free: 8.301 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03037/0.446, allocations: 2.991 MB / 0.5542 GB, free: 6.527 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.77, allocations: 2.156 kB / 0.5542 GB, free: 6.527 MB / 398.1 MB " [Timeout remaining time 648] (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 --stepSize=0.04 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Wind_Test_RotorTest.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.Test.RotorTest.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.581233748234808]